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

Function rejects_newer_schema

atomic-agent/src/integrations/manifest.rs:317–325  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

315
316 #[test]
317 fn rejects_newer_schema() {
318 let tmp = tempfile::tempdir().unwrap();
319 write_manifest(
320 tmp.path(),
321 "schema = 2\nagent = \"x\"\nversion = \"1.0.0\"\n",
322 );
323 let err = IntegrationManifest::load(tmp.path()).unwrap_err();
324 assert!(err.to_string().contains("unsupported manifest schema 2"));
325 }
326
327 #[test]
328 fn cli_version_gate_accepts_matching() {

Callers

nothing calls this directly

Calls 3

write_manifestFunction · 0.70
unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected