diff options
| author | aur-build <aur-build@localhost> | 2026-11-20 20:24:47 +0000 |
|---|---|---|
| committer | aur-build <aur-build@localhost> | 2026-11-20 20:24:47 +0000 |
| commit | 9d4078919717559c90e40736917603401135437c (patch) | |
| tree | 7479b0782fa03365f3e7c440c30bbdec90acb0e7 /src/bin/makechrootpkg.rs | |
| parent | 8426843087178cac55c3dcea52aea3baccc29b69 (diff) | |
| download | aur-build-9d4078919717559c90e40736917603401135437c.tar.gz aur-build-9d4078919717559c90e40736917603401135437c.zip | |
hash, time, db::model: move the pure clock and digest tests home
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.
Diffstat (limited to 'src/bin/makechrootpkg.rs')
0 files changed, 0 insertions, 0 deletions
