diff options
| author | aur-build <aur-build@localhost> | 2026-11-20 20:19:54 +0000 |
|---|---|---|
| committer | aur-build <aur-build@localhost> | 2026-11-20 20:19:54 +0000 |
| commit | 8426843087178cac55c3dcea52aea3baccc29b69 (patch) | |
| tree | d430dd5588d05c1d0543979fa8626cfa79c77d05 /templates/dashboard.html | |
| parent | 68ec6971b872d8be561e8c2c2748c6c143bfef7d (diff) | |
| download | aur-build-8426843087178cac55c3dcea52aea3baccc29b69.tar.gz aur-build-8426843087178cac55c3dcea52aea3baccc29b69.zip | |
config: move the parsing and validation tests into the module
Eleven tests in tests/config.rs exercised how a config parses, what it
refuses, and what it refuses to print. They reached those behaviours
through the crate's public API only because that was the only way in, and
that had been keeping two items public that nothing outside config names:
DEFAULT_SANDBOX_IMAGE resolved at config.rs:187 and :374, nowhere else
Sandbox::KINDS never read by production at all — serde builds
the unknown-kind message itself
KINDS is now `#[cfg(test)]` rather than merely private, and
`cargo check --release` without the test-support feature compiles with
zero warnings, which is the proof that nothing production needed was
gated away by mistake.
One honest caveat, recorded in the file: these tests still create a
tempdir, because `Config::load` takes a directory and so even a pure
parse needs a file on disk. That is plumbing for the signature, not the
subject of the test — none of them touches the database, the fixture
corpus, or a subprocess. What remains in tests/config.rs genuinely does:
root resolution against real paths under target/, and two tests that run
the built binary.
config: 31 pub / 5 test-only -> 29 pub / 3 test-only.
Suite: 281 passed, 0 failed.
Diffstat (limited to 'templates/dashboard.html')
0 files changed, 0 insertions, 0 deletions
