test_non_outer_doc_comments_are_not_blocks

Tests › tests/guard/test_guard_rust.py

passed Passed in the packaged run.

What this test is for

Why it exists

The test says nothing about why.

Given

  1. (func,) = _parse(f"{comment}\nfn f() {{}}\n")
→

When

  1. —
→

Then

  1. ✓ func.doxygen is None

What it exercises

The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.

`main` (clew/guard/main.py) · 24 of 357 steps

… 112 earlier steps

program launcherprogram launcherprogram launcherprogram launcherclew/guard/config.pyclew/guard/config.pyclew/guard/config.pyclew/guard/config.pyclew/guard/ts_parser.pyclew/guard/ts_parser.pyclew/guard/ts_parser.pyclew/guard/ts_parser.pyother filesother filesother filesother filesopt (line 168)optopt (line 786)optloop (line 647)loopopt (line 652)optmain113. language_for_file → _language_from_config113_language_from_config114. parse_content_for_file → parse_functions114parse_functions115. parse_functions → parse_functions_ts115parse_functions_ts▶ test enters116. parse_functions_ts → get_parser_for_language116get_parser_for_language117. parse_functions_ts → get_language_spec117get_language_spec118–121. parse_functions_ts → _collect_functions118_collect_functions +3 more122. _enclosing_class_for → _rust_impl_self_type122_rust_impl_self_type123. _collect_functions → _declared_function123_declared_function124–125. _collect_functions → _append_declaration124_append_declaration +1 more

… 1 step between

program launcherprogram launcherprogram launcherprogram launcherclew/guard/ts_parser.pyclew/guard/ts_parser.pyclew/guard/ts_parser.pyclew/guard/ts_parser.pyloop (line 647)loopopt (line 658)optelif (line 379)elifmain127–128. _append_declaration → _qualified_enclosing127_qualified_enclosing +1 more129–132. _collect_functions → _resolve_function_node129_resolve_function_node +3 more133. _extract_function_name → _name_from_declarator133_name_from_declarator134–139. _collect_functions → _function_carrier134_function_carrier +5 more140–141. _find_preceding_doxygen → _collect_python_comments140_collect_python_comments +1 more

… 2 steps between

program launcherprogram launcherprogram launcherprogram launcherclew/guard/main.pyclew/guard/main.pyclew/guard/main.pyclew/guard/main.pyclew/guard/config.pyclew/guard/config.pyclew/guard/config.pyclew/guard/config.pyclew/guard/checks.pyclew/guard/checks.pyclew/guard/checks.pyclew/guard/checks.pyclew/guard/ts_parser.pyclew/guard/ts_parser.pyclew/guard/ts_parser.pyclew/guard/ts_parser.pyother filesother filesother filesother filesopt (line 400)optloop (line 647)loopopt (line 658)optopt (line 681)optopt (line 683)optalt (line 684)altopt (line 227)opttry (line 241)trymain144. _find_preceding_doxygen → apply_autobrief144apply_autobrief145. _find_preceding_doxygen → _last_row145_last_row146–149. _collect_functions → _qualified_enclosing146_qualified_enclosing +3 more150. _js_returns_void → _function_carrier150_function_carrier151. _collect_functions → _produced_class151_produced_class152. _produced_class → _function_carrier152_function_carrier153. _collect_functions → _collect_functions153_collect_functions154. _collect_functions → _collect_functions154_collect_functions155. validate_file → unconfigured_language155unconfigured_language156. validate_file → check_file_presence156check_file_presence

… 201 later steps

tests/guard/test_guard_rust.py:95 · its file's page

What it checks (1)

  1. assert func.doxygen is None not attributed

Where the product reaches it

No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.

Call flow

test_non_outer_doc_comments_are_not_blocks→_parse

What it reaches

Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.

test_non_outer_doc_comments_are_not_blocks · 1 checks_parseparse_functionsREQ-DDB-GUARD-018 · measured_parse… 4 calls …parse_doxygen_tagsREQ-DDB-GUARD-019 · measured_parseparse_functionsparse_functions_tsREQ-DDB-GUARD-020 · measured_parse… 4 calls …_find_python_docstring_blockREQ-DDB-GUARD-021 · inferred_parse… 3 calls …_is_rust_test_itemREQ-DDB-GUARD-024 · measured_parse… 3 calls …_js_returns_voidREQ-DDB-GUARD-025 · measured
Also reaches 6 requirements

Its run touches their code; that is reach, not proof.