add path_info tests
This commit is contained in:
parent
7285c29e88
commit
878e096494
4 changed files with 70 additions and 2 deletions
16
tests/common/mod.rs
Normal file
16
tests/common/mod.rs
Normal 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()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue