StrictDoc Documentation
tests/integration/features/source_code_traceability/_language_parsers/c/20_c_backward_and_forward_functions/test.itest
Source file coverage
Path:
tests/integration/features/source_code_traceability/_language_parsers/c/20_c_backward_and_forward_functions/test.itest
Lines:
23
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, SDOC-SRS-145, scope=file)
2
 
3
RUN: %strictdoc export %S --output-dir %T | filecheck %s --dump-input=fail
4
CHECK: Published: Reproducer
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#1#55">
10
CHECK-HTML: <a{{.*}}href="../_source_files/file.c.html#REQ-1#1#55">
11
CHECK-HTML: <a{{.*}}href="../_source_files/file.c.html#REQ-1#3#10">
12
CHECK-HTML: <a{{.*}}href="../_source_files/file.c.html#REQ-1#32#33">
13
CHECK-HTML: <a{{.*}}href="../_source_files/file2.c.html#REQ-1#1#8">
14
 
15
RUN: %cat %T/html/_source_files/file.c.html | filecheck %s --check-prefix CHECK-SOURCE-FILE
16
CHECK-SOURCE-FILE: 1 - 55 | entire file
17
CHECK-SOURCE-FILE: 3 - 10 | function foo()
18
CHECK-SOURCE-FILE: 12 - 16 | range
19
CHECK-SOURCE-FILE: 22 - 55 | function longFunctionName()
20
CHECK-SOURCE-FILE: 32 - 33 | line
21
 
22
RUN: %cat %T/html/source_coverage.html | filecheck %s --check-prefix CHECK-SOURCE-COVERAGE
23
CHECK-SOURCE-COVERAGE: 100.0