test_binary_named_as_source_is_detected

Tests › tests/test_toolchain.py

passed Passed in the packaged run.

What this test is for

Why it exists

The test says nothing about why.

Verifies REQ-DDB-CONFIG-009

Given

  1. blob = tmp_path / "blob.c"
  2. blob.write_bytes(ZIP)
→

When

  1. skipped = binary_file(blob)
  2. binary_file(_write(tmp_path, "ok.c"))
→

Then

  1. ✓ skipped is not None
  2. ✓ skipped.binary_kind equals "archive"
  3. ✓ binary_file(_write(tmp_path, "ok.c")) is None

tests/test_toolchain.py:104 · its file's page

What it checks (2)

  1. assert skipped is not None and skipped.binary_kind == "archive" observes binary_file via skipped
  2. assert binary_file(_write(tmp_path, "ok.c")) is None observes binary_file

Where the product reaches it

  • main → _run → run_precommit → _validate_files → validate_file → gate_exclusion → binary_file (flow)

Call flow

test_binary_named_as_source_is_detected→binary_file→_write

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_binary_named_as_source_is_detected · 2 checksbinary_fileREQ-DDB-PIPE-011 · measured

Requirements it verifies (1)

requirementlinked byimplementers exercised
REQ-DDB-CONFIG-009catalogunknown
Also reaches 1 requirement

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