diff options
| author | aur-build <aur-build@localhost> | 2026-11-20 23:53:49 +0000 |
|---|---|---|
| committer | aur-build <aur-build@localhost> | 2026-11-20 23:53:49 +0000 |
| commit | 28023ba17adbe6fc096a31d5e2c62d017a88fc4c (patch) | |
| tree | 53b948169a47c012126466142aec80450eb07f9d /tests/architecture-budget.json | |
| parent | 66814ddb86009de7a519f167db634dab3e924fa8 (diff) | |
| download | aur-build-28023ba17adbe6fc096a31d5e2c62d017a88fc4c.tar.gz aur-build-28023ba17adbe6fc096a31d5e2c62d017a88fc4c.zip | |
tools: the detector learns to see through a private inner module
`aliased_behind_private_module` reports an item as not release-exposed only when
both halves of the pattern hold: a `pub use ..::NAME;` whose attribute block
carries the test-support gate, and every `pub` declaration of the name sitting
inside a module that is itself private. Either half alone is not enough — a
gated alias to a genuinely public type says nothing, and a `pub` type in a
public module is reachable whatever the alias says.
The census still counts the inner `pub` as a public declaration, which is the
honest reading of the text and the reason this needed a second check rather than
a change to the first.
New `narrowed` disposition, distinct from `already-gated`: production *does* use
these items, just never from outside their module. `residue` and `ungated` are
now 0 and the ratchet records it.
Every one of the 46 items carries a hand-written reason naming its production
caller or explaining why it has none.
Diffstat (limited to 'tests/architecture-budget.json')
| -rw-r--r-- | tests/architecture-budget.json | 61 |
1 files changed, 30 insertions, 31 deletions
diff --git a/tests/architecture-budget.json b/tests/architecture-budget.json index 7a7f7d1..3358039 100644 --- a/tests/architecture-budget.json +++ b/tests/architecture-budget.json @@ -81,10 +81,10 @@ "dead": 2, "deadonly": 0, "glob": 0, - "largest": 673, + "largest": 701, "largest_file": "src/config.rs", - "lines": 673, - "priv": 0, + "lines": 701, + "priv": 2, "pub": 29, "test": 2 }, @@ -92,10 +92,10 @@ "dead": 19, "deadonly": 9, "glob": 0, - "largest": 364, - "largest_file": "src/db/candidates.rs", - "lines": 3917, - "priv": 10, + "largest": 367, + "largest_file": "src/db/mod.rs", + "lines": 3961, + "priv": 11, "pub": 200, "test": 10 }, @@ -149,8 +149,8 @@ "glob": 0, "largest": 565, "largest_file": "src/http/routes/pages.rs", - "lines": 1927, - "priv": 72, + "lines": 2010, + "priv": 74, "pub": 22, "test": 5 }, @@ -180,10 +180,10 @@ "dead": 4, "deadonly": 1, "glob": 0, - "largest": 415, + "largest": 455, "largest_file": "src/ops.rs", - "lines": 415, - "priv": 0, + "lines": 455, + "priv": 3, "pub": 13, "test": 3 }, @@ -193,8 +193,8 @@ "glob": 0, "largest": 472, "largest_file": "src/pipeline/steps.rs", - "lines": 1330, - "priv": 11, + "lines": 1400, + "priv": 16, "pub": 21, "test": 6 }, @@ -237,8 +237,8 @@ "glob": 0, "largest": 301, "largest_file": "src/review/diff.rs", - "lines": 872, - "priv": 3, + "lines": 902, + "priv": 4, "pub": 24, "test": 4 }, @@ -246,9 +246,9 @@ "dead": 9, "deadonly": 2, "glob": 0, - "largest": 490, + "largest": 506, "largest_file": "src/sandbox/kata.rs", - "lines": 1329, + "lines": 1411, "priv": 16, "pub": 21, "test": 7 @@ -257,10 +257,10 @@ "dead": 12, "deadonly": 8, "glob": 0, - "largest": 618, + "largest": 646, "largest_file": "src/shims/mod.rs", - "lines": 618, - "priv": 0, + "lines": 646, + "priv": 2, "pub": 19, "test": 4 }, @@ -301,29 +301,28 @@ "dead": 8, "deadonly": 4, "glob": 0, - "largest": 270, - "largest_file": "src/watch/detect.rs", - "lines": 1038, - "priv": 7, + "largest": 302, + "largest_file": "src/watch/upstream.rs", + "lines": 1102, + "priv": 10, "pub": 24, "test": 4 } }, "test_surface": { "already-gated": 17, - "residue": 29, - "total": 46, - "ungated": 29 + "narrowed": 29, + "total": 46 }, "totals": { "dead": 84, "deadonly": 36, "edges": 87, "glob": 0, - "largest": 673, + "largest": 701, "largest_file": "src/config.rs", - "lines": 15186, - "priv": 119, + "lines": 15655, + "priv": 138, "pub": 484, "test": 48 } |
