From 9d4078919717559c90e40736917603401135437c Mon Sep 17 00:00:00 2001 From: aur-build Date: Fri, 20 Nov 2026 20:24:47 +0000 Subject: hash, time, db::model: move the pure clock and digest tests home MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tests/hash.rs held three tests and none of them belonged there. Two were about `canonical_json` and moved into src/hash.rs. The third asserted that the identity digest is a pure function of an identity's own fields — a property of `db::model::Identity`, not of the hashing helper it happens to call — so it moved to db::model, where the thing it tests lives. The file is now empty and is deleted; the tests are moves, not losses, and each is named in its new module. tests/time.rs held three tests, two of which were clock arithmetic with no dependencies at all. They moved into src/time.rs. The third pins a build lease against a pinned clock and needs a database, so it stayed where a database is available. No visibility changed in this commit: `canonical_json` is used in production and stays public, and `time::pin`/`unpin` are ungated test escapes that the disposition table will decide on rather than being quietly narrowed here as a side effect. Suite: 281 passed, 0 failed, 0 ignored. Release build: zero warnings. --- tests/architecture-budget.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/architecture-budget.json') diff --git a/tests/architecture-budget.json b/tests/architecture-budget.json index d361c54..c71c764 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": 3742, + "lines": 3770, "priv": 10, "pub": 202, "test": 13 @@ -136,9 +136,9 @@ "dead": 0, "deadonly": 0, "glob": 0, - "largest": 59, + "largest": 111, "largest_file": "src/hash.rs", - "lines": 59, + "lines": 111, "priv": 0, "pub": 7, "test": 0 @@ -268,9 +268,9 @@ "dead": 5, "deadonly": 2, "glob": 0, - "largest": 206, + "largest": 231, "largest_file": "src/time.rs", - "lines": 206, + "lines": 231, "priv": 0, "pub": 14, "test": 3 @@ -316,7 +316,7 @@ "glob": 0, "largest": 667, "largest_file": "src/config.rs", - "lines": 14733, + "lines": 14838, "priv": 109, "pub": 497, "test": 65 -- cgit v1.2.3