Skip to content

5-test-migration (2): delete dead v1 module r2_emit_add_named_test (0 tests, 0 callers) - #6132

Merged
briansrls merged 1 commit into
mainfrom
test-migration/r2-emit-add-named
Jul 2, 2026
Merged

briansrls merged 1 commit into
mainfrom
test-migration/r2-emit-add-named

Conversation

@gunbai-bot

@gunbai-bot gunbai-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Second PR of the 5-test-migration lane (v1 burn-down). Pure deletion, no .dag edits.

What

Delete src/v1/tests/src/r2_emit_add_named_test.rs (114 LOC) and its mod line in lib.rs.

Why no witness migration is needed

The module is dead code: it contains zero #[test] functions, and its three pub fns (assert_r2_emit_add_keystone, assert_keystone_green, assert_keystone_discriminates_on_mutation) have zero call sites anywhere in the tree (grep over src/ — only the mod declaration references it). It never executes under cargo test or anywhere else, so deleting it removes no coverage; there is nothing to migrate. The behavior it once harnessed (emit fn add keystone + mutation discrimination) lives in src/v2/test/claim/manual/rust_add_emit_translate_test.dag, which target_model_runtime_import_repro.rs still exercises (that module is a later, separate migration).

Receipts

  • grep -rn "assert_r2_emit_add_keystone|assert_keystone_green|assert_keystone_discriminates_on_mutation" src/ --include=*.rs → no hits outside the deleted file.
  • cargo test -p v1-compiler-tests --no-run compiles clean after the delete (exit 0).

Per the lane brief: SMALL PRs; census §5B listed this module with "0 tests" already (docs/plans/seed-shrink-census.md — census otherwise stale vs live tree).

🤖 Generated with Claude Code

…est], 0 callers)

The module has no #[test] functions and its three pub fns
(assert_r2_emit_add_keystone / assert_keystone_green /
assert_keystone_discriminates_on_mutation) have zero call sites anywhere in
the tree — it never executes, so deleting it removes no coverage. The
behavior it once harnessed lives in
src/v2/test/claim/manual/rust_add_emit_translate_test.dag.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@briansrls
briansrls merged commit 44c6b20 into main Jul 2, 2026
0 of 2 checks passed
@briansrls
briansrls deleted the test-migration/r2-emit-add-named branch July 2, 2026 04:47
briansrls pushed a commit that referenced this pull request Jul 2, 2026
…ion mod deletes (#6141)

PRs #6131/#6132/#6133/#6139 deleted 'mod <x>_test;' lines but left each line's
own #[cfg(test)] attribute, which now stacks onto the next declaration —
clippy::duplicated_attributes reds the v1 rust gate (fmt+clippy+nextest) on
main. Pure attribute cleanup, no behavior change.

Co-authored-by: Brian Searls <briansearls1@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant