MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / vector

Function vector

atomic-canonical/tests/ingest_boundary.rs:35–40  ·  view source on GitHub ↗
(rel: &str)

Source from the content-addressed store, hash-verified

33use serde_json::Value;
34
35fn 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
42fn admission_error(bytes: &[u8]) -> Admission {
43 match jcs::admit_document(bytes) {

Calls 1

readFunction · 0.70

Tested by

no test coverage detected