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

Function agent_mismatch_rejected

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

Source from the content-addressed store, hash-verified

542 #[test]
543 #[serial]
544 fn agent_mismatch_rejected() {
545 let home = tempfile::tempdir().unwrap();
546 std::env::set_var("ATOMIC_INTEGRATIONS_HOME", home.path());
547 let (pkg, _dst) = fake_package("real-agent");
548 let mut o = opts(false);
549 o.expect_agent = Some("other-agent".to_string());
550 let err = install_from_dir(pkg.path(), &o).unwrap_err();
551 assert!(err.to_string().contains("is for agent 'real-agent'"));
552 std::env::remove_var("ATOMIC_INTEGRATIONS_HOME");
553 }
554
555 #[test]
556 #[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