StrictDoc Documentation
tests/integration/features/source_code_traceability/_language_parsers/c/07_c_definition_and_declaration_in_the_same_file/test.itest
Source file coverage
Path:
tests/integration/features/source_code_traceability/_language_parsers/c/07_c_definition_and_declaration_in_the_same_file/test.itest
Lines:
37
Non-empty lines:
29
Non-empty lines covered with requirements:
29 / 29 (100.0%)
Functions:
0
Functions covered by requirements:
0 / 0 (0.0%)
1
# @relation(SDOC-SRS-146, SDOC-SRS-137, scope=file)
2
 
3
RUN: %strictdoc export %S --output-dir %T | filecheck %s --dump-input=fail
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#8">
10
CHECK-HTML: file.c, <i>lines: 3-8</i>, function hello_world_1
11
CHECK-HTML: <a{{.*}}href="../_source_files/file.c.html#REQ-1#17#22">
12
CHECK-HTML: file.c, <i>lines: 17-22</i>, function hello_world_1
13
CHECK-HTML: <a{{.*}}href="../_source_files/file.c.html#REQ-2#10#15">
14
CHECK-HTML: file.c, <i>lines: 10-15</i>, function hello_world_2
15
CHECK-HTML: <a{{.*}}href="../_source_files/file.c.html#REQ-2#24#29">
16
CHECK-HTML: file.c, <i>lines: 24-29</i>, function hello_world_2
17
 
18
RUN: %cat %T/html/_source_files/file.c.html | filecheck %s --check-prefix CHECK-SOURCE-FILE
19
CHECK-SOURCE-FILE: href="../_source_files/file.c.html#REQ-1#3#8"
20
CHECK-SOURCE-FILE: <b>[ 3-8 ]</b>
21
CHECK-SOURCE-FILE: file.c, function hello_world_1
22
 
23
CHECK-SOURCE-FILE: href="../_source_files/file.c.html#REQ-1#17#22"
24
CHECK-SOURCE-FILE: <b>[ 17-22 ]</b>
25
CHECK-SOURCE-FILE: file.c, function hello_world_1
26
 
27
CHECK-SOURCE-FILE: href="../_source_files/file.c.html#REQ-2#10#15"
28
CHECK-SOURCE-FILE: <b>[ 10-15 ]</b>
29
CHECK-SOURCE-FILE: file.c, function hello_world_2
30
 
31
CHECK-SOURCE-FILE: href="../_source_files/file.c.html#REQ-2#24#29"
32
CHECK-SOURCE-FILE: <b>[ 24-29 ]</b>
33
CHECK-SOURCE-FILE: file.c, function hello_world_2
34
 
35
FIXME: The coverage will change.
36
RUN: %cat %T/html/source_coverage.html | filecheck %s --check-prefix CHECK-SOURCE-COVERAGE
37
CHECK-SOURCE-COVERAGE: 96.0