Orchestrata Ultimate › Tests › Reference › scripts › test_scan_implementation

Tests reference — tests/scripts/test_scan_implementation.py

Module of tests/scripts, split out because the directory page would be too large.

Prose pending.

tests/scripts/test_scan_implementation.py

source · 14 tests · 334 lines

Tests for scripts/scan_implementation.py — the thin CLI shim over

Kind Name Line Description
class TestStdoutIsAPureFactStream 107
method TestStdoutIsAPureFactStream.test_every_nonempty_stdout_line_matches_the_fact_grammar 108
method TestStdoutIsAPureFactStream.test_expected_facts_are_present 121
class TestDiagnosticsGoToStderr 128
method TestDiagnosticsGoToStderr.test_the_file_count_banner_is_on_stderr_only 129
method TestDiagnosticsGoToStderr.test_a_class_whose_name_contains_found_does_not_break_the_contract 143 Regression guard for the substring form of the assertion above.
class TestZeroMatches 155 An empty stdout is only a usable answer if the reader can tell WHICH
method TestZeroMatches.test_empty_project_emits_zero_facts_and_says_it_scanned_nothing 167
method TestZeroMatches.test_zero_facts_from_a_healthy_scan_differs_from_a_degraded_scan 182 The load-bearing comparison: two empty-ish results, two answers.
class TestExitCodeSemanticsUnchanged 210
method TestExitCodeSemanticsUnchanged.test_too_few_args_exits_1_with_usage_on_stderr 211
method TestExitCodeSemanticsUnchanged.test_no_args_exits_1_with_usage_on_stderr 217
method TestExitCodeSemanticsUnchanged.test_missing_project_dir_exits_nonzero_with_traceback_on_stderr 223
method TestExitCodeSemanticsUnchanged.test_successful_scan_with_facts_exits_zero 233
class TestJsTsEvidenceIsAstPrecise 267 The capability commit 29bbf088 deleted, pinned where it can be seen.
method TestJsTsEvidenceIsAstPrecise.test_identifiers_come_from_parsing_not_from_filenames 270
method TestJsTsEvidenceIsAstPrecise.test_a_broken_node_toolchain_is_reported_not_silently_empty 281 THE regression test for this blocker.
method TestJsTsEvidenceIsAstPrecise.test_stdout_stays_a_pure_fact_stream_across_the_node_subprocess 307 contextlib.redirect_stdout rebinds sys.stdout; it does
method TestJsTsEvidenceIsAstPrecise.test_unnamed_js_symbols_never_reach_the_fact_stream 319 An anonymous default export serializes with the name