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

Function rejects_newer_schema

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

Source from the content-addressed store, hash-verified

196
197 #[test]
198 fn rejects_newer_schema() {
199 let tmp = tempfile::tempdir().unwrap();
200 write_manifest(
201 tmp.path(),
202 "schema = 2\nagent = \"x\"\nversion = \"1.0.0\"\n",
203 );
204 let err = IntegrationManifest::load(tmp.path()).unwrap_err();
205 assert!(err.to_string().contains("unsupported manifest schema 2"));
206 }
207
208 #[test]
209 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