From 68ec6971b872d8be561e8c2c2748c6c143bfef7d Mon Sep 17 00:00:00 2001 From: aur-build Date: Fri, 20 Nov 2026 20:14:27 +0000 Subject: pkgver: move the pure version and dependency tests into the module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ten tests in tests/versions.rs were unit tests of pkgver wearing an integration test's clothing: the comparison vectors, the chunk rule, the epoch rules, the dependency grammar, the constraint checks, the recorded oracle. None of them touched a database or a fixture. They were written against the crate's public API because that was the only way to reach them from outside, and that single fact — that a test had to import a name to exercise it — is what had been keeping five items public: vercmp_string, Dep, DepOp, Dep::satisfied_by, split_full_version All five are private now. `vercmp_string` is called by `vercmp` and by nothing else; `Dep` and `DepOp` are the internals of `dep_names`, which *is* used in production; `satisfied_by` and `Dep::name` are used only by this module's tests, so they are gated rather than merely private, and `cargo check --release` without the test-support feature compiles clean, which is the proof that nothing production needs them was left behind. The oracle test now resolves testcorpus/ through CARGO_MANIFEST_DIR rather than the harness helper, so it no longer depends on the working directory. The live pacman differential came with it and stays gated on AUR_LIVE_VERCMP, recording its absence the same way. What remains in tests/versions.rs is two tests that genuinely need the harness: they build a package, publish it, and move its upstream. pkgver: 14 pub / 5 test-only -> 8 pub / 0 test-only. Suite: 281 passed, 0 failed. --- tools/__pycache__/arch-census.cpython-314.pyc | Bin 0 -> 21690 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 tools/__pycache__/arch-census.cpython-314.pyc (limited to 'tools/__pycache__/arch-census.cpython-314.pyc') diff --git a/tools/__pycache__/arch-census.cpython-314.pyc b/tools/__pycache__/arch-census.cpython-314.pyc new file mode 100644 index 0000000..7351142 Binary files /dev/null and b/tools/__pycache__/arch-census.cpython-314.pyc differ -- cgit v1.2.3