Path:
tests/integration/features/source_code_traceability/_language_parsers/python/04_python_forward_function_in_class/test.itest
Lines:
33
Non-empty lines:
23
Non-empty lines covered with requirements:
23 / 23 (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: Export completed.
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#7#16">10
CHECK-HTML: <a{{.*}}href="../_source_files/file.py.html#REQ-1#7#16">11
CHECK-HTML: <a{{.*}}href="../_source_files/file.py.html#REQ-1#11#16">12
CHECK-HTML: <a{{.*}}href="../_source_files/file.py.html#REQ-1#13#14">13
CHECK-HTML: <a{{.*}}href="../_source_files/file.py.html#REQ-2#4#5">14
15
RUN: %cat %T/html/_source_files/file.py.html | filecheck %s --dump-input=fail --check-prefix CHECK-SOURCE-FILE
16
17
CHECK-SOURCE-FILE: <b>[ 7-16 ]</b>
18
CHECK-SOURCE-FILE: file.py, function Foo.hello_world
19
20
CHECK-SOURCE-FILE: <b>[ 7-16 ]</b>
21
CHECK-SOURCE-FILE: file.py, function Foo.hello_world
22
23
CHECK-SOURCE-FILE: <b>[ 11-16 ]</b>
24
CHECK-SOURCE-FILE: file.py, range
25
26
CHECK-SOURCE-FILE: <b>[ 13-14 ]</b>
27
CHECK-SOURCE-FILE: file.py, line
28
29
CHECK-SOURCE-FILE: <b>[ 4-5 ]</b>
30
CHECK-SOURCE-FILE: file.py, function Foo.Bar.Baz.hello_world
31
32
RUN: %cat %T/html/source_coverage.html | filecheck %s --dump-input=fail --check-prefix CHECK-SOURCE-COVERAGE
33
CHECK-SOURCE-COVERAGE: 70.6