StrictDoc Documentation
tests/integration/features/source_code_traceability/_source_nodes/20_linux_spdx_in_source_identifiers/test.itest
Source file coverage
Path:
tests/integration/features/source_code_traceability/_source_nodes/20_linux_spdx_in_source_identifiers/test.itest
Lines:
21
Non-empty lines:
14
Non-empty lines covered with requirements:
14 / 14 (100.0%)
Functions:
0
Functions covered by requirements:
0 / 0 (0.0%)
1
#
2
# @relation(SDOC-SRS-141, scope=file)
3
#
4
 
5
RUN: %strictdoc --debug export %S --output-dir %T | filecheck %s
6
 
7
CHECK: Published: Hello world doc
8
 
9
RUN: %check_exists --file "%T/html/_source_files/src/example/example.c.html"
10
 
11
RUN: %cat %T/html/%THIS_TEST_FOLDER/requirements.html | filecheck %s --check-prefix CHECK-HTML
12
CHECK-HTML: SPDX requirements
13
CHECK-HTML: SPDX_DOC/src/example/example.c/example_1
14
CHECK-HTML: src/example/example.c, <i>lines: 3-18</i>, function example_1()
15
 
16
RUN: %cat %T/html/_source_files/src/example/example.c.html | filecheck %s --check-prefix CHECK-SOURCE-FILE
17
 
18
CHECK-SOURCE-FILE: SPDX_DOC/src/example/example.c/example_1
19
 
20
RUN: %cat %T/html/source_coverage.html | filecheck %s --check-prefix CHECK-SOURCE-COVERAGE
21
CHECK-SOURCE-COVERAGE: 94.1