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

Function for_each_hook

atomic-agent/tests/hook_timestamps.rs:39–47  ·  view source on GitHub ↗
(mut test: impl FnMut(&dyn AgentHook, HookType))

Source from the content-addressed store, hash-verified

37}
38
39fn for_each_hook(mut test: impl FnMut(&dyn AgentHook, HookType)) {
40 let registry = AgentRegistry::with_defaults();
41 for name in registry.list() {
42 let agent = registry.require(name).unwrap();
43 for hook_type in agent.supported_hooks() {
44 test(agent, hook_type);
45 }
46 }
47}
48
49#[test]
50fn every_adapter_preserves_source_time_in_events_and_journal_envelopes() {

Calls 4

listMethod · 0.45
unwrapMethod · 0.45
requireMethod · 0.45
supported_hooksMethod · 0.45

Tested by

no test coverage detected