diff options
Diffstat (limited to 'tools/test-surface.md')
| -rw-r--r-- | tools/test-surface.md | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/test-surface.md b/tools/test-surface.md index 740cf61..7f22e16 100644 --- a/tools/test-surface.md +++ b/tools/test-surface.md @@ -94,7 +94,7 @@ reaches the test tier also reaches a release build. | `watch` | `probe` | `src/watch/upstream.rs:44` | `architecture.rs`, `ops.rs`, `vcs.rs` | `src/watch/detect.rs:95` | the upstream probe, called by detect.rs:95; tests/ops.rs and tests/vcs.rs both need a fixture. | | `watch` | `sync_mirror` | `src/watch/mirror.rs:22` | `detect.rs` | `src/watch/detect.rs:40` | the mirror sync, called by detect.rs:40; tests/detect.rs drives a real sync. | -## Already gated — 17 items +## Already gated — 16 items | module | item | declared at | test files | in-module call sites | why | |---|---|---|---|---|---| @@ -106,7 +106,6 @@ reaches the test tier also reaches a release build. | `db` | `tx_for_tests` | `src/db/mod.rs:284` | `approve.rs`, `common/mod.rs`, `db.rs`, `invariants.rs` … | — | already gated behind test-support — the pattern the rest of this table asks for. | | `db` | `unapproved_index_entries` | `src/db/invariants.rs:15` | `db.rs`, `detect.rs`, `notices.rs`, `shims.rs` | — | an invariant query nothing runs; it needs `pub(crate)` diff internals to be useful, so it is gated rather than relocated. | | `db` | `world_members` | `src/db/world.rs:32` | `db.rs` | — | a world-snapshot reader nothing calls; `put_world_snapshot` is the half production uses. | -| `pipeline` | `shutdown` | `src/pipeline/dispatch.rs:61` | `architecture.rs`, `common/mod.rs`, `crash.rs`, `dispatch.rs` | — | `Pool::shutdown` stops and joins the dispatcher threads. Production runs the pool until the process exits and never asks it to stop; tests/dispatch.rs and tests/crash.rs need the join so they can assert on the pool's effects after it is gone. Gated, not narrowed: no production build should carry a stop path nothing invokes. | | `review` | `render_and_store` | `src/review/diff.rs:282` | `approve.rs`, `common/mod.rs`, `crash.rs`, `dispatch.rs` … | — | intake renders through `review::intake::record`; this wrapper has zero callers in src and 17 in tests. Gated, not relocated: it needs the module-private diff renderer. | | `review` | `withdraw` | `src/review/approve.rs:234` | `architecture.rs`, `pipeline.rs`, `production_surface.rs` | — | Single-release withdraw. The CLI and the web UI both go through `usecase::withdraw_package` -> `pipeline::publish::withdraw_package`; nothing invokes this. tests/pipeline.rs pins its invariants (a second withdraw is refused, an unknown release is refused), so it is gated rather than deleted: the test is the cover for the operation production has not grown yet. | | `sandbox` | `LocalAgentProvisioner` | `src/sandbox/kata.rs:134` | `kata.rs` | — | production selects `K8sSandboxProvisioner` (kata.rs:193); nothing in the crate constructs this type. It exists so tests can drive the real agent protocol against the shim binary without a cluster, so it is gated rather than deleted. The census credited its own `impl` headers as callers. | @@ -122,8 +121,8 @@ reaches the test tier also reaches a release build. |---|---| | `interface` | 1 | | `narrowed` | 19 | -| `already-gated` | 17 | -| **total** | **37** | +| `already-gated` | 16 | +| **total** | **36** | Of these, 1 are ungated today. Gating the `gate` rows and narrowing the `narrow` rows removes 0 items from the release build's public surface; the |
