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

Function test_hook_verbs

atomic-agent/src/hooks/agy.rs:460–467  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

458
459 #[test]
460 fn test_hook_verbs() {
461 let hook = make_hook();
462 let verbs = hook.hook_verbs();
463 assert_eq!(verbs.len(), 3);
464 assert!(verbs.contains(&"pre-invocation"));
465 assert!(verbs.contains(&"stop"));
466 assert!(verbs.contains(&"post-tool-use"));
467 }
468
469 #[test]
470 fn test_verbs_map_to_hook_types() {

Callers

nothing calls this directly

Calls 2

make_hookFunction · 0.70
hook_verbsMethod · 0.45

Tested by

no test coverage detected