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

Function test_hook_verbs

atomic-agent/src/hooks/opencode.rs:683–693  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

681
682 #[test]
683 fn test_hook_verbs() {
684 let hook = make_hook();
685 let verbs = hook.hook_verbs();
686 assert_eq!(verbs.len(), 6);
687 assert!(verbs.contains(&"session-start"));
688 assert!(verbs.contains(&"session-end"));
689 assert!(verbs.contains(&"user-prompt"));
690 assert!(verbs.contains(&"stop"));
691 assert!(verbs.contains(&"before-tool"));
692 assert!(verbs.contains(&"after-tool"));
693 }
694
695 #[test]
696 fn test_default() {

Callers

nothing calls this directly

Calls 2

make_hookFunction · 0.70
hook_verbsMethod · 0.45

Tested by

no test coverage detected