Path:
tests/integration/features/source_code_traceability/_language_parsers/python/08_python_nested/test.itest
Lines:
33
Non-empty lines:
24
Non-empty lines covered with requirements:
24 / 24 (100.0%)
Functions:
0
Functions covered by requirements:
0 / 0 (0.0%)
- "7.2.3. Language-aware parsing of Python code" (REQUIREMENT)
- "7.6.3. Language element marker" (REQUIREMENT)
1
# @relation(SDOC-SRS-147, SDOC-SRS-137, 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 --check-prefix CHECK-HTML
9
CHECK-HTML: <a{{.*}}href="../_source_files/file.py.html#REQ-1#4#18">10
11
RUN: %cat %T/html/_source_files/file.py.html | filecheck %s --check-prefix CHECK-SOURCE-FILE
12
CHECK-SOURCE-FILE: href="../_source_files/file.py.html#REQ-1#4#18"
13
CHECK-SOURCE-FILE: <b>[ 4-18 ]</b>
14
CHECK-SOURCE-FILE: file.py, function Foo.hello_world
15
16
CHECK-SOURCE-FILE: href="../_source_files/file.py.html#REQ-2#12#16"
17
CHECK-SOURCE-FILE: <b>[ 12-16 ]</b>
18
CHECK-SOURCE-FILE: file.py, function Foo.hello_world.nested_function
19
20
CHECK-SOURCE-FILE: href="../_source_files/file.py.html#REQ-3#20#34"
21
CHECK-SOURCE-FILE: <b>[ 20-34 ]</b>
22
CHECK-SOURCE-FILE: file.py, function hello_world_2
23
24
CHECK-SOURCE-FILE: href="../_source_files/file.py.html#REQ-4#28#32"
25
CHECK-SOURCE-FILE: <b>[ 28-32 ]</b>
26
CHECK-SOURCE-FILE: file.py, function hello_world_2.nested_function
27
28
CHECK-SOURCE-FILE: href="../_source_files/file.py.html#REQ-5#38#42"
29
CHECK-SOURCE-FILE: <b>[ 38-42 ]</b>
30
CHECK-SOURCE-FILE: file.py, function Outer.Inner.hello_world
31
32
RUN: %cat %T/html/source_coverage.html | filecheck %s --check-prefix CHECK-SOURCE-COVERAGE
33
CHECK-SOURCE-COVERAGE: 62.5