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

Function test_hook_verbs

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

make_hookFunction · 0.70
hook_verbsMethod · 0.45

Tested by

no test coverage detected