summaryrefslogtreecommitdiffstats
path: root/tools/test-surface.md
diff options
context:
space:
mode:
Diffstat (limited to 'tools/test-surface.md')
-rw-r--r--tools/test-surface.md26
1 files changed, 10 insertions, 16 deletions
diff --git a/tools/test-surface.md b/tools/test-surface.md
index cd6851e..9f85c5f 100644
--- a/tools/test-surface.md
+++ b/tools/test-surface.md
@@ -46,14 +46,6 @@ The `residue` count is ratcheted by `tests/architecture.rs`, so it can only
shrink.
-## Gate behind `test-support` — 3 items
-
-| module | item | declared at | test files | why |
-|---|---|---|---|---|
-| `review` | `render_and_store` | `src/review/diff.rs:269` | `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. |
-| `shims` | `called_with` | `src/shims/mod.rs:144` | `crash.rs`, `dispatch.rs`, `invariants.rs`, `kata.rs` … | reads the shim's invocation log, which only tests inspect. |
-| `time` | `unpin` | `src/time.rs:47` | `time.rs` | the clock escape hatch; `pin`/`unpin` exist so a test can freeze time. Its only in-module mention is a unit test. |
-
## Residue — `pub` because Rust has no test-conditional visibility — 33 items
| module | item | declared at | test files | why |
@@ -86,13 +78,13 @@ shrink.
| `sandbox` | `local_addr` | `src/sandbox/kata.rs:250` | `remote_agent.rs` | the agent's local address, read by the backend selection at mod.rs:120; tests/remote_agent.rs asserts on it. |
| `shims` | `invocations` | `src/shims/mod.rs:133` | `shims.rs` | reads the shim invocation log; the shim writes it in production (mod.rs:112) but nothing in src reads it back. |
| `shims` | `manifest` | `src/shims/mod.rs:88` | `common/mod.rs`, `invariants.rs`, `pipeline.rs`, `production_surface.rs` … | the shim manifest, read by `run` at mod.rs:161; seven test files read it to assert what a build did. |
-| `shims` | `valid_db_arg` | `src/shims/mod.rs:479` | `shims.rs` | the shim's `--db` argument validator; production calls it at mod.rs:510, tests check its verdicts. |
+| `shims` | `valid_db_arg` | `src/shims/mod.rs:486` | `shims.rs` | the shim's `--db` argument validator; production calls it at mod.rs:510, tests check its verdicts. |
| `watch` | `StageBSlot` | `src/watch/upstream.rs:118` | `vcs.rs` | the stage-B cache slot shape; tests/vcs.rs asserts on it while driving a real mirror. |
| `watch` | `needs_stage_b` | `src/watch/upstream.rs:20` | `vcs.rs` | the stage-B predicate, consulted by detect.rs:101. |
| `watch` | `probe` | `src/watch/upstream.rs:25` | `ops.rs`, `vcs.rs` | 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:17` | `detect.rs` | the mirror sync, called by detect.rs:40; tests/detect.rs drives a real sync. |
-## Already gated — 10 items
+## Already gated — 13 items
| module | item | declared at | test files | why |
|---|---|---|---|---|
@@ -104,19 +96,21 @@ shrink.
| `db` | `tx_for_tests` | `src/db/mod.rs:271` | `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. |
-| `time` | `virtual_sleep` | `src/time.rs:168` | `production_surface.rs` | already gated behind test-support. |
-| `time` | `virtualize` | `src/time.rs:119` | `crash.rs`, `dispatch.rs`, `production_surface.rs` | already gated behind test-support. |
+| `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. |
+| `shims` | `called_with` | `src/shims/mod.rs:151` | `crash.rs`, `dispatch.rs`, `invariants.rs`, `kata.rs` … | reads the shim's invocation log, which only tests inspect. |
+| `time` | `unpin` | `src/time.rs:57` | `time.rs` | the clock escape hatch; `pin`/`unpin` exist so a test can freeze time. Its only in-module mention is a unit test. |
+| `time` | `virtual_sleep` | `src/time.rs:178` | `production_surface.rs` | already gated behind test-support. |
+| `time` | `virtualize` | `src/time.rs:129` | `crash.rs`, `dispatch.rs`, `production_surface.rs` | already gated behind test-support. |
## Totals
| disposition | count |
|---|---|
-| `gate` | 3 |
| `residue` | 33 |
-| `already-gated` | 10 |
+| `already-gated` | 13 |
| **total** | **46** |
-Of these, 36 are ungated today. Gating the `gate` rows and narrowing the
-`narrow` rows removes 3 items from the release build's public surface; the
+Of these, 33 are ungated today. Gating the `gate` rows and narrowing the
+`narrow` rows removes 0 items from the release build's public surface; the
`move-test` rows remove 0 more and take their tests home with them.