StrictDoc Documentation
tests/integration/features/source_code_traceability/_language_parsers/python/07_python_functions_decorated/test.itest
Source file coverage
Path:
tests/integration/features/source_code_traceability/_language_parsers/python/07_python_functions_decorated/test.itest
Lines:
34
Non-empty lines:
25
Non-empty lines covered with requirements:
25 / 25 (100.0%)
Functions:
0
Functions covered by requirements:
0 / 0 (0.0%)
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#18#24">
10
# @relation(SDOC-SRS-147, SDOC-SRS-137, scope=file)
11
 
12
RUN: %cat %T/html/_source_files/file.py.html | filecheck %s --check-prefix CHECK-SOURCE-FILE
13
CHECK-SOURCE-FILE: href="../_source_files/file.py.html#REQ-1#18#24"
14
CHECK-SOURCE-FILE: <b>[ 18-24 ]</b>
15
CHECK-SOURCE-FILE: file.py, function Foo.hello_world
16
 
17
CHECK-SOURCE-FILE: href="../_source_files/file.py.html#REQ-2#27#33"
18
CHECK-SOURCE-FILE: <b>[ 27-33 ]</b>
19
CHECK-SOURCE-FILE: file.py, function Foo.hello_world_decorated_once
20
 
21
CHECK-SOURCE-FILE: href="../_source_files/file.py.html#REQ-3#37#43"
22
CHECK-SOURCE-FILE: <b>[ 37-43 ]</b>
23
CHECK-SOURCE-FILE: file.py, function Foo.hello_world_decorated_twice
24
 
25
CHECK-SOURCE-FILE: href="../_source_files/file.py.html#REQ-4#48#54"
26
CHECK-SOURCE-FILE: <b>[ 48-54 ]</b>
27
CHECK-SOURCE-FILE: file.py, function Foo.hello_world_decorated_three_times
28
 
29
CHECK-SOURCE-FILE: href="../_source_files/file.py.html#REQ-5#60#66"
30
CHECK-SOURCE-FILE: <b>[ 60-66 ]</b>
31
CHECK-SOURCE-FILE: file.py, function Foo.hello_world_decorated_four_times
32
 
33
RUN: %cat %T/html/source_coverage.html | filecheck %s --check-prefix CHECK-SOURCE-COVERAGE
34
CHECK-SOURCE-COVERAGE: 50.0