This introduces rstest-based tests. We also add fixtures for creating some BlobService / DirectoryService out of thin air. To test a PathInfoService, we don't really care too much about its internal storage - ensuring they work is up to the castore tests. Change-Id: Ia62af076ef9c9fbfcf8b020a781454ad299d972e Reviewed-on: https://cl.tvl.fyi/c/depot/+/11272 Tested-by: BuildkiteCI Reviewed-by: Connor Brewster <cbrewster@hey.com>
14 lines
308 B
Rust
14 lines
308 B
Rust
pub mod import;
|
|
pub mod nar;
|
|
pub mod pathinfoservice;
|
|
pub mod proto;
|
|
pub mod utils;
|
|
|
|
#[cfg(test)]
|
|
mod tests;
|
|
|
|
// That's what the rstest_reuse README asks us do, and fails about being unable
|
|
// to find rstest_reuse in crate root.
|
|
#[cfg(test)]
|
|
#[allow(clippy::single_component_path_imports)]
|
|
use rstest_reuse;
|