Path:
tests/integration/features/source_code_traceability/_language_parsers/c/03_c_forward_function/test.itest
Lines:
35
Non-empty lines:
29
Non-empty lines covered with requirements:
29 / 29 (100.0%)
Functions:
0
Functions covered by requirements:
0 / 0 (0.0%)
- "7.2.2. Language-aware parsing of C/C++ code" (REQUIREMENT)
- "7.5.1. SDoc markup's forward relations" (REQUIREMENT)
1
# @relation(SDOC-SRS-146, SDOC-SRS-145, 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/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#3#10">10
CHECK-HTML: <a{{.*}}href="../_source_files/file.c.html#REQ-1#3#10">11
CHECK-HTML: <a{{.*}}href="../_source_files/file.c.html#REQ-1#12#19">12
CHECK-HTML: <a{{.*}}href="../_source_files/file.c.html#REQ-1#21#28">13
CHECK-HTML: <a{{.*}}href="../_source_files/file.c.html#REQ-1#30#38">14
15
RUN: %cat %T/html/_source_files/file.c.html | filecheck %s --check-prefix CHECK-SOURCE-FILE
16
# Left panel.
17
CHECK-SOURCE-FILE: <b>[ 3-10 ]</b>
18
CHECK-SOURCE-FILE: file.c, function hello_world()
19
CHECK-SOURCE-FILE: <b>[ 3-10 ]</b>
20
CHECK-SOURCE-FILE: file.c, function hello_world()
21
CHECK-SOURCE-FILE: <b>[ 12-19 ]</b>
22
CHECK-SOURCE-FILE: file.c, function hello_world_2()
23
CHECK-SOURCE-FILE: <b>[ 21-28 ]</b>
24
CHECK-SOURCE-FILE: file.c, function hello_world_3()
25
CHECK-SOURCE-FILE: <b>[ 30-38 ]</b>
26
CHECK-SOURCE-FILE: file.c, function hello_world_4()
27
28
# Main source view.
29
CHECK-SOURCE-FILE: 3 - 10 | function hello_world()
30
CHECK-SOURCE-FILE: 12 - 19 | function hello_world_2()
31
CHECK-SOURCE-FILE: 21 - 28 | function hello_world_3()
32
CHECK-SOURCE-FILE: 30 - 38 | function hello_world_4()
33
34
RUN: %cat %T/html/source_coverage.html | filecheck %s --check-prefix CHECK-SOURCE-COVERAGE
35
CHECK-SOURCE-COVERAGE: 97.1