Path:
tests/integration/features/source_code_traceability/_language_parsers/python/03_python_forward_function/test.itest
Lines:
20
Non-empty lines:
15
Non-empty lines covered with requirements:
15 / 15 (100.0%)
Functions:
0
Functions covered by requirements:
0 / 0 (0.0%)
- "7.2.3. Language-aware parsing of Python code" (REQUIREMENT)
- "7.5.1. SDoc markup's forward relations" (REQUIREMENT)
1
# @relation(SDOC-SRS-147, SDOC-SRS-145, 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.py.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.py.html#REQ-1#1#10">10
CHECK-HTML: <a{{.*}}href="../_source_files/file.py.html#REQ-1#1#10">11
CHECK-HTML: <a{{.*}}href="../_source_files/file.py.html#REQ-1#5#10">12
CHECK-HTML: <a{{.*}}href="../_source_files/file.py.html#REQ-1#7#8">13
14
RUN: %cat %T/html/_source_files/file.py.html | filecheck %s --dump-input=fail --check-prefix CHECK-SOURCE-FILE
15
CHECK-SOURCE-FILE: 1 - 10 | function hello_world()
16
CHECK-SOURCE-FILE: 5 - 10 | range
17
CHECK-SOURCE-FILE: 7 - 8 | line
18
19
RUN: %cat %T/html/source_coverage.html | filecheck %s --dump-input=fail --check-prefix CHECK-SOURCE-COVERAGE
20
CHECK-SOURCE-COVERAGE: 83.3