summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/architecture-budget.json16
-rw-r--r--tests/architecture.rs5
2 files changed, 11 insertions, 10 deletions
diff --git a/tests/architecture-budget.json b/tests/architecture-budget.json
index b2bc33b..f717923 100644
--- a/tests/architecture-budget.json
+++ b/tests/architecture-budget.json
@@ -91,10 +91,10 @@
"db": {
"dead": 49,
"deadonly": 36,
- "glob": 2,
- "largest": 1501,
- "largest_file": "src/db/queries.rs",
- "lines": 3687,
+ "glob": 0,
+ "largest": 568,
+ "largest_file": "src/db/builds.rs",
+ "lines": 3948,
"priv": 5,
"pub": 226,
"test": 13
@@ -302,10 +302,10 @@
"dead": 219,
"deadonly": 146,
"edges": 80,
- "glob": 4,
- "largest": 1501,
- "largest_file": "src/db/queries.rs",
- "lines": 13549,
+ "glob": 2,
+ "largest": 603,
+ "largest_file": "src/shims/mod.rs",
+ "lines": 13810,
"priv": 42,
"pub": 585,
"test": 73
diff --git a/tests/architecture.rs b/tests/architecture.rs
index 919728c..e957f53 100644
--- a/tests/architecture.rs
+++ b/tests/architecture.rs
@@ -59,8 +59,9 @@ const RANKS: &[(&str, u8, &str)] = &[
/// `pub use … ::*` a module is still allowed to keep, as `module -> count`.
/// This is the allowlist, and the ratchet is what empties it: a glob re-export
/// flattens a namespace so a reader cannot see a module's width from its
-/// exports, which is the whole point of the budgets.
-const GLOB_ALLOWLIST: &[(&str, usize)] = &[("db", 2), ("http", 2)];
+/// exports, which is the whole point of the budgets. `db` used to need two; it
+/// now names every export, so the slot is closed rather than left at zero.
+const GLOB_ALLOWLIST: &[(&str, usize)] = &[("http", 2)];
const DECL_KEYWORDS: [&str; 7] = ["fn", "struct", "enum", "trait", "const", "static", "type"];