(rel: &str)
| 33 | use serde_json::Value; |
| 34 | |
| 35 | fn vector(rel: &str) -> Vec<u8> { |
| 36 | let path: PathBuf = Path::new(env!("CARGO_MANIFEST_DIR")) |
| 37 | .join("tests/vectors/ingest") |
| 38 | .join(rel); |
| 39 | fs::read(&path).unwrap_or_else(|e| panic!("read {path:?}: {e}")) |
| 40 | } |
| 41 | |
| 42 | fn admission_error(bytes: &[u8]) -> Admission { |
| 43 | match jcs::admit_document(bytes) { |
no test coverage detected