StrictDoc Documentation
tests/integration/features/source_code_traceability/_general_parser_forward/60_file_range_with_line_range/test.itest
Source file coverage
Path:
tests/integration/features/source_code_traceability/_general_parser_forward/60_file_range_with_line_range/test.itest
Lines:
37
Non-empty lines:
26
Non-empty lines covered with requirements:
26 / 26 (100.0%)
Functions:
0
Functions covered by requirements:
0 / 0 (0.0%)
1
#
2
# @relation(SDOC-SRS-145, scope=file)
3
#
4
 
5
NOTE: The first link is created from a forward marker, the second from a backward markers.
6
      Ensure that both links are identical from the UI perspective.
7
 
8
RUN: %strictdoc export %S --output-dir %T | filecheck %s --dump-input=fail
9
CHECK: Published: Hello world doc
10
 
11
RUN: %check_exists --file "%T/html/_source_files/file.py.html"
12
 
13
RUN: %cat %T/html/60_file_range_with_line_range/input.html | filecheck %s --dump-input=fail --check-prefix CHECK-HTML
14
CHECK-HTML: <link rel="stylesheet" href="../_static/base.css"/>
15
 
16
CHECK-HTML: <a{{.*}}href="../_source_files/file.py.html#REQ-001#2#4">
17
CHECK-HTML: <a{{.*}}href="../_source_files/file2.py.html#REQ-001#2#4">
18
 
19
RUN: %cat %T/html/_source_files/file.py.html | filecheck %s --dump-input=fail --check-prefix CHECK-SOURCE-FILE
20
 
21
CHECK-SOURCE-FILE: href="../60_file_range_with_line_range/input.html#REQ-001"
22
 
23
CHECK-SOURCE-FILE: href="../_source_files/file.py.html#REQ-001#2#4"
24
CHECK-SOURCE-FILE: <b>[ 2-4 ]</b>
25
CHECK-SOURCE-FILE: file.py, range
26
 
27
CHECK-SOURCE-FILE: href="../_source_files/file2.py.html#REQ-001#1#4"
28
CHECK-SOURCE-FILE: <b>[ 2-4 ]</b>
29
CHECK-SOURCE-FILE: file2.py, entire file
30
 
31
CHECK-SOURCE-FILE: href="../_source_files/file2.py.html#REQ-001#2#4"
32
CHECK-SOURCE-FILE: <b>[ 2-4 ]</b>
33
CHECK-SOURCE-FILE: file2.py, range
34
 
35
RUN: %cat %T/html/source_coverage.html | filecheck %s --dump-input=fail --check-prefix CHECK-SOURCE-COVERAGE
36
CHECK-SOURCE-COVERAGE: 42.9
37
CHECK-SOURCE-COVERAGE: 100.0