StrictDoc Documentation
tests/integration/features/source_code_traceability/_source_nodes/12_merged_functions_do_not_generate_sections/test.itest
Source file coverage
Path:
tests/integration/features/source_code_traceability/_source_nodes/12_merged_functions_do_not_generate_sections/test.itest
Lines:
22
Non-empty lines:
18
Non-empty lines covered with requirements:
18 / 18 (100.0%)
Functions:
0
Functions covered by requirements:
0 / 0 (0.0%)
1
#
2
# This test verifies that source nodes that are merged with a static SDoc node
3
# do not cause auto-generation of one or more parent sections. The static node
4
# is already in a static parent section. Auto-generated section with conventional
5
# name would stay empty and are thus unexpected.
6
#
7
# @relation(SDOC-SRS-141, scope=file)
8
#
9
 
10
RUN: %strictdoc --debug export %S --output-dir %T | filecheck %s
11
 
12
CHECK: Export to HTML: Hello world doc
13
 
14
RUN: %check_exists --file "%T/html/_source_files/src/example/example.c.html"
15
 
16
RUN: %cat %T/html/%THIS_TEST_FOLDER/source_node_base.html | filecheck %s --check-prefix CHECK-HTML
17
CHECK-HTML: Requirements from Source Nodes
18
CHECK-HTML: REQ-EXAMPLE-1
19
CHECK-HTML: Title from example.c
20
CHECK-HTML: src/example/example.c, <i>lines: 3-14</i>, function example_1()
21
CHECK-HTML: Statement from example.c
22
CHECK-HTML-NOT: <sdoc-autogen>{{.*}}example.c</sdoc-autogen>