summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/architecture-budget.json75
-rw-r--r--tests/architecture.rs21
2 files changed, 54 insertions, 42 deletions
diff --git a/tests/architecture-budget.json b/tests/architecture-budget.json
index 4d0bf90..9d63943 100644
--- a/tests/architecture-budget.json
+++ b/tests/architecture-budget.json
@@ -94,7 +94,7 @@
"glob": 0,
"largest": 364,
"largest_file": "src/db/candidates.rs",
- "lines": 3731,
+ "lines": 3742,
"priv": 10,
"pub": 202,
"test": 13
@@ -103,9 +103,9 @@
"dead": 0,
"deadonly": 0,
"glob": 0,
- "largest": 124,
+ "largest": 430,
"largest_file": "src/error.rs",
- "lines": 124,
+ "lines": 430,
"priv": 0,
"pub": 21,
"test": 0
@@ -144,23 +144,23 @@
"test": 0
},
"http": {
- "dead": 54,
+ "dead": 53,
"deadonly": 43,
"glob": 2,
"largest": 565,
"largest_file": "src/http/routes/pages.rs",
- "lines": 1951,
+ "lines": 1938,
"priv": 32,
"pub": 68,
- "test": 11
+ "test": 10
},
"lib": {
"dead": 0,
"deadonly": 0,
"glob": 0,
- "largest": 22,
+ "largest": 23,
"largest_file": "src/lib.rs",
- "lines": 22,
+ "lines": 23,
"priv": 0,
"pub": 0,
"test": 0
@@ -169,16 +169,16 @@
"dead": 0,
"deadonly": 0,
"glob": 0,
- "largest": 361,
+ "largest": 314,
"largest_file": "src/main.rs",
- "lines": 361,
+ "lines": 314,
"priv": 0,
"pub": 0,
"test": 0
},
"ops": {
- "dead": 5,
- "deadonly": 2,
+ "dead": 4,
+ "deadonly": 1,
"glob": 0,
"largest": 415,
"largest_file": "src/ops.rs",
@@ -191,10 +191,10 @@
"dead": 6,
"deadonly": 0,
"glob": 0,
- "largest": 481,
+ "largest": 472,
"largest_file": "src/pipeline/steps.rs",
- "lines": 1339,
- "priv": 2,
+ "lines": 1330,
+ "priv": 11,
"pub": 21,
"test": 6
},
@@ -232,13 +232,13 @@
"test": 0
},
"review": {
- "dead": 11,
- "deadonly": 6,
+ "dead": 10,
+ "deadonly": 5,
"glob": 0,
"largest": 295,
"largest_file": "src/review/diff.rs",
- "lines": 792,
- "priv": 0,
+ "lines": 880,
+ "priv": 2,
"pub": 29,
"test": 5
},
@@ -246,10 +246,10 @@
"dead": 15,
"deadonly": 0,
"glob": 0,
- "largest": 347,
+ "largest": 350,
"largest_file": "src/sandbox/kata.rs",
- "lines": 1175,
- "priv": 3,
+ "lines": 1178,
+ "priv": 11,
"pub": 27,
"test": 15
},
@@ -286,28 +286,39 @@
"pub": 2,
"test": 0
},
+ "usecase": {
+ "dead": 3,
+ "deadonly": 3,
+ "glob": 0,
+ "largest": 123,
+ "largest_file": "src/usecase/reviews.rs",
+ "lines": 402,
+ "priv": 0,
+ "pub": 30,
+ "test": 0
+ },
"watch": {
"dead": 13,
"deadonly": 7,
"glob": 0,
- "largest": 317,
+ "largest": 270,
"largest_file": "src/watch/detect.rs",
- "lines": 969,
- "priv": 0,
+ "lines": 970,
+ "priv": 2,
"pub": 30,
"test": 6
}
},
"totals": {
- "dead": 194,
- "deadonly": 121,
- "edges": 80,
+ "dead": 180,
+ "deadonly": 105,
+ "edges": 87,
"glob": 2,
"largest": 603,
"largest_file": "src/shims/mod.rs",
- "lines": 13593,
- "priv": 47,
- "pub": 560,
- "test": 73
+ "lines": 14336,
+ "priv": 68,
+ "pub": 579,
+ "test": 75
}
}
diff --git a/tests/architecture.rs b/tests/architecture.rs
index e957f53..d3a4142 100644
--- a/tests/architecture.rs
+++ b/tests/architecture.rs
@@ -44,16 +44,17 @@ const RANKS: &[(&str, u8, &str)] = &[
("watch", 6, "detection: turns a moved upstream into a candidate, so it needs review"),
("pipeline", 7, "the step machine: orchestrates watch, review and sandbox"),
("ops", 8, "retention, metrics, backup: reads across the modules it reports on"),
- ("http", 9, "the UI: the top of the tree, everything is beneath it"),
- ("main", 10, "the CLI: composition root"),
- ("lib", 10, "the crate root: declares the modules and re-exports the error type"),
- ("bin/sandbox-agent", 10, "the sandbox agent: composition root on the far side of the wire"),
- ("bin/gpg", 10, "a shim binary: composition root for one tool"),
- ("bin/makepkg", 10, "a shim binary: composition root for one tool"),
- ("bin/makechrootpkg", 10, "a shim binary: composition root for one tool"),
- ("bin/mkarchroot", 10, "a shim binary: composition root for one tool"),
- ("bin/pacman", 10, "a shim binary: composition root for one tool"),
- ("bin/repo-add", 10, "a shim binary: composition root for one tool"),
+ ("usecase", 9, "the workflows both front ends run: orchestrates review, watch, pipeline and ops"),
+ ("http", 10, "the UI: renders use-case results, so only the composition roots are above it"),
+ ("main", 11, "the CLI: composition root"),
+ ("lib", 11, "the crate root: declares the modules and re-exports the error type"),
+ ("bin/sandbox-agent", 11, "the sandbox agent: composition root on the far side of the wire"),
+ ("bin/gpg", 11, "a shim binary: composition root for one tool"),
+ ("bin/makepkg", 11, "a shim binary: composition root for one tool"),
+ ("bin/makechrootpkg", 11, "a shim binary: composition root for one tool"),
+ ("bin/mkarchroot", 11, "a shim binary: composition root for one tool"),
+ ("bin/pacman", 11, "a shim binary: composition root for one tool"),
+ ("bin/repo-add", 11, "a shim binary: composition root for one tool"),
];
/// `pub use … ::*` a module is still allowed to keep, as `module -> count`.