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

Function test_hook_verbs

atomic-agent/src/hooks/pi.rs:628–638  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

626
627 #[test]
628 fn test_hook_verbs() {
629 let hook = make_hook();
630 let verbs = hook.hook_verbs();
631 assert_eq!(verbs.len(), 6);
632 assert!(verbs.contains(&"session-start"));
633 assert!(verbs.contains(&"session-end"));
634 assert!(verbs.contains(&"user-prompt"));
635 assert!(verbs.contains(&"stop"));
636 assert!(verbs.contains(&"before-tool"));
637 assert!(verbs.contains(&"after-tool"));
638 }
639
640 #[test]
641 fn test_default() {

Callers

nothing calls this directly

Calls 2

make_hookFunction · 0.70
hook_verbsMethod · 0.45

Tested by

no test coverage detected