Path:
tests/integration/features/source_code_traceability/_general/80_link_from_section_to_file_from_included_document/test.itest
Lines:
35
Non-empty lines:
27
Non-empty lines covered with requirements:
27 / 27 (100.0%)
Functions:
0
Functions covered by requirements:
0 / 0 (0.0%)
1
#
2
# This test verifies that a source file can be linked to a [[SECTION]] element,
3
# which is located in an included document.
4
#
5
# @relation(SDOC-SRS-33, scope=file)
6
#
7
8
RUN: %strictdoc export %S --output-dir %T | filecheck %s
9
CHECK: Export completed.
10
11
RUN: %check_exists --file "%T/html/_source_files/file.py.html"
12
13
RUN: %cat %T/html/%THIS_TEST_FOLDER/index.html | filecheck %s --check-prefix CHECK-HTML
14
CHECK-HTML: <a{{.*}}href="../_source_files/file.py.html#SECT-1#1#12">15
CHECK-HTML: file.py, <i>lines: 1-12</i>, entire file
16
17
CHECK-HTML: <a{{.*}}href="../_source_files/file.py.html#SECT-1#5#12">18
CHECK-HTML: file.py, <i>lines: 5-12</i>, function hello_world()
19
20
CHECK-HTML: <a{{.*}}href="../_source_files/file.py.html#SECT-1#10#12">21
CHECK-HTML: file.py, <i>lines: 10-12</i>, range
22
23
RUN: %cat %T/html/_source_files/file.py.html | filecheck %s --check-prefix CHECK-SOURCE-FILE
24
25
# Left/aside panel: The requirement cell has a link that correctly points to the document file.
26
CHECK-SOURCE-FILE: href="../80_link_from_section_to_file_from_included_document/test.html#SECT-1"
27
CHECK-SOURCE-FILE: ../_source_files/file.py.html#SECT-1#1#12
28
29
# Central panel.
30
CHECK-SOURCE-FILE: "../_source_files/file.py.html##1#12"
31
CHECK-SOURCE-FILE: 1 - 12 | entire file
32
CHECK-SOURCE-FILE: "../_source_files/file.py.html##5#12"
33
CHECK-SOURCE-FILE: 5 - 12 | function hello_world()
34
CHECK-SOURCE-FILE: "../_source_files/file.py.html##10#12"
35
CHECK-SOURCE-FILE: 10 - 12 | range