add path_info tests

This commit is contained in:
cy 2025-04-28 13:30:49 -04:00
parent 7285c29e88
commit 878e096494
4 changed files with 70 additions and 2 deletions

16
tests/common/mod.rs Normal file
View file

@ -0,0 +1,16 @@
use nixcp::store::Store;
pub struct Context {
pub store: Store,
}
impl Context {
fn new() -> Self {
let store = Store::connect().expect("connect to nix store");
Self { store }
}
}
pub fn context() -> Context {
Context::new()
}