Path:
tests/integration/features/source_code_traceability/_source_nodes/30_merge_with_sdoc_by_default_uid/test.itest
Lines:
30
Non-empty lines:
24
Non-empty lines covered with requirements:
24 / 24 (100.0%)
Functions:
0
Functions covered by requirements:
0 / 0 (0.0%)
1
#
2
# This test verifies that a source nodes is merged with a static SDoc node if
3
# - the source nodes is not marked up with a UID field (i.e., default UID is effective), and
4
# - static SDoc node was explicitly given the default UID.
5
#
6
# @relation(SDOC-SRS-141, scope=file)
7
#
8
9
RUN: %strictdoc --debug export %S --output-dir %T | filecheck %s
10
11
CHECK: Export to HTML: Hello world doc
12
13
RUN: %check_exists --file "%T/html/_source_files/src/example.c.html"
14
15
RUN: %cat %T/html/%THIS_TEST_FOLDER/source_node_base.html | filecheck %s --check-prefix CHECK-HTML
16
CHECK-HTML: Requirements from Source Nodes
17
CHECK-HTML: SRC-NODES-BASE/src/example.c/example_1
18
CHECK-HTML: TITLE from sdoc
19
CHECK-HTML: class="requirement__link-parent" href="../30_merge_with_sdoc_by_default_uid/parent.html#REQ-1"
20
CHECK-HTML: src/example.c, <i>lines: 3-14</i>, function example_1()
21
CHECK-HTML-NOT: FOO text from sdoc
22
CHECK-HTML: FOO text from example.c
23
CHECK-HTML-NOT: BAR text from sdoc
24
CHECK-HTML: BAR text from example.c
25
26
RUN: %cat %T/html/_source_files/src/example.c.html | filecheck %s --check-prefix CHECK-SOURCE-FILE
27
CHECK-SOURCE-FILE: SRC-NODES-BASE/src/example.c/example_1
28
29
RUN: %cat %T/html/source_coverage.html | filecheck %s --check-prefix CHECK-SOURCE-COVERAGE
30
CHECK-SOURCE-COVERAGE: 100.0