StrictDoc Documentation
tests/integration/features/source_code_traceability/_language_parsers/c/08_c_static_definition_in_a_file/test.itest
Source file coverage
Path:
tests/integration/features/source_code_traceability/_language_parsers/c/08_c_static_definition_in_a_file/test.itest
Lines:
24
Non-empty lines:
18
Non-empty lines covered with requirements:
18 / 18 (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#10">
10
CHECK-HTML: file.c, <i>lines: 3-10</i>, function hello_world_1
11
CHECK-HTML: <a{{.*}}href="../_source_files/file.c.html#REQ-2#12#19">
12
CHECK-HTML: file.c, <i>lines: 12-19</i>, function hello_world_2
13
 
14
RUN: %cat %T/html/_source_files/file.c.html | filecheck %s --check-prefix CHECK-SOURCE-FILE
15
CHECK-SOURCE-FILE: href="../_source_files/file.c.html#REQ-1#3#10"
16
CHECK-SOURCE-FILE: <b>[ 3-10 ]</b>
17
CHECK-SOURCE-FILE: file.c, function hello_world_1
18
 
19
CHECK-SOURCE-FILE: href="../_source_files/file.c.html#REQ-2#12#19"
20
CHECK-SOURCE-FILE: <b>[ 12-19 ]</b>
21
CHECK-SOURCE-FILE: file.c, function hello_world_2
22
 
23
RUN: %cat %T/html/source_coverage.html | filecheck %s --check-prefix CHECK-SOURCE-COVERAGE
24
CHECK-SOURCE-COVERAGE: 94.1