Path:
tests/integration/features/source_code_traceability/_language_parsers/c/04_c_file/test.itest
Lines:
31
Non-empty lines:
23
Non-empty lines covered with requirements:
23 / 23 (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.4. File marker" (REQUIREMENT)
1
# @relation(SDOC-SRS-146, SDOC-SRS-139, 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 --dump-input=fail --check-prefix CHECK-HTML
9
CHECK-HTML: <a{{.*}}href="../_source_files/file.c.html#REQ-1#1#11">10
CHECK-HTML: file.c, <i>lines: 1-11</i>, entire file
11
12
RUN: %cat %T/html/_source_files/file.c.html | filecheck %s --check-prefix CHECK-SOURCE-FILE
13
14
#
15
# Left panel.
16
#
17
CHECK-SOURCE-FILE: href="../_source_files/file.c.html#REQ-1#1#11"
18
CHECK-SOURCE-FILE: <b>[ 1-11 ]</b>
19
CHECK-SOURCE-FILE: file.c, entire file
20
21
CHECK-SOURCE-FILE: href="../_source_files/file.c.html#REQ-2#1#11"
22
CHECK-SOURCE-FILE: <b>[ 1-11 ]</b>
23
CHECK-SOURCE-FILE: file.c, entire file
24
25
#
26
# Main source view.
27
#
28
CHECK-SOURCE-FILE: 1 - 11 | entire file
29
30
RUN: %cat %T/html/source_coverage.html | filecheck %s --check-prefix CHECK-SOURCE-COVERAGE
31
CHECK-SOURCE-COVERAGE: 100.0