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

Function agent_mismatch_rejected

atomic-agent/src/integrations/install.rs:941–950  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

939 #[test]
940 #[serial]
941 fn agent_mismatch_rejected() {
942 let home = tempfile::tempdir().unwrap();
943 std::env::set_var("ATOMIC_INTEGRATIONS_HOME", home.path());
944 let (pkg, _dst) = fake_package("real-agent");
945 let mut o = opts(false);
946 o.expect_agent = Some("other-agent".to_string());
947 let err = install_from_dir(pkg.path(), &o).unwrap_err();
948 assert!(err.to_string().contains("is for agent 'real-agent'"));
949 std::env::remove_var("ATOMIC_INTEGRATIONS_HOME");
950 }
951
952 #[test]
953 #[serial]

Callers

nothing calls this directly

Calls 5

fake_packageFunction · 0.85
optsFunction · 0.85
install_from_dirFunction · 0.85
unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected