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