Path:
tests/integration/features/source_code_traceability/_language_parsers/c/02_c_function/test.itest
Lines:
41
Non-empty lines:
31
Non-empty lines covered with requirements:
31 / 31 (100.0%)
Functions:
0
Functions covered by requirements:
0 / 0 (0.0%)
- "7.2.2. Language-aware parsing of C/C++ code" (REQUIREMENT)
- "7.6.3. Language element marker" (REQUIREMENT)
1
# @relation(SDOC-SRS-146, SDOC-SRS-137, scope=file)
2
3
RUN: %strictdoc export %S --output-dir %T | filecheck %s
4
CHECK: Published: Hello world doc
5
6
RUN: %check_exists --file "%T/html/_source_files/file.c.html"
7
8
RUN: %cat %T/html/%THIS_TEST_FOLDER/input.html | filecheck %s --check-prefix CHECK-HTML
9
CHECK-HTML: <a{{.*}}href="../_source_files/file.c.html#REQ-1#3#10">10
CHECK-HTML: file.c, <i>lines: 3-10</i>, function hello_world
11
CHECK-HTML: <a{{.*}}href="../_source_files/file.c.html#REQ-1#21#28">12
CHECK-HTML: file.c, <i>lines: 21-28</i>, function hello_world_3
13
CHECK-HTML: <a{{.*}}href="../_source_files/file.c.html#REQ-1#30#38">14
CHECK-HTML: file.c, <i>lines: 30-38</i>, function hello_world_4
15
16
RUN: %cat %T/html/_source_files/file.c.html | filecheck %s --check-prefix CHECK-SOURCE-FILE
17
18
CHECK-SOURCE-FILE: href="../_source_files/file.c.html#REQ-1#3#10"
19
CHECK-SOURCE-FILE: <b>[ 3-10 ]</b>
20
CHECK-SOURCE-FILE: file.c, function hello_world
21
22
CHECK-SOURCE-FILE: href="../_source_files/file.c.html#REQ-1#21#28"
23
CHECK-SOURCE-FILE: <b>[ 21-28 ]</b>
24
CHECK-SOURCE-FILE: file.c, function hello_world_3
25
26
CHECK-SOURCE-FILE: href="../_source_files/file.c.html#REQ-1#30#38"
27
CHECK-SOURCE-FILE: <b>[ 30-38 ]</b>
28
CHECK-SOURCE-FILE: file.c, function hello_world_4
29
30
CHECK-SOURCE-FILE:<div data-line="2"
31
CHECK-SOURCE-FILE: Requirement Title
32
CHECK-SOURCE-FILE: Requirement Statement
33
CHECK-SOURCE-FILE: @relation(REQ-1, scope=function)
34
CHECK-SOURCE-FILE:<div data-line="11"
35
CHECK-SOURCE-FILE: Requirement Title #2
36
CHECK-SOURCE-FILE: Requirement Statement #2
37
CHECK-SOURCE-FILE: @relation(REQ-2, scope=function)
38
39
40
RUN: %cat %T/html/source_coverage.html | filecheck %s --check-prefix CHECK-SOURCE-COVERAGE
41
CHECK-SOURCE-COVERAGE: 97.1