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

Function test_agent_hook_is_object_safe

atomic-agent/src/hooks/mod.rs:805–810  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

803
804 #[test]
805 fn test_agent_hook_is_object_safe() {
806 // This test verifies that AgentHook can be used as a trait object.
807 // If this compiles, the trait is object-safe.
808 let agent: Box<dyn AgentHook> = Box::new(MockAgent::new("test"));
809 assert_eq!(agent.name(), "test");
810 }
811
812 #[test]
813 fn test_agent_hook_send_sync() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected