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

Function test_hook_verbs

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

Source from the content-addressed store, hash-verified

709
710 #[test]
711 fn test_hook_verbs() {
712 let hook = make_hook();
713 let verbs = hook.hook_verbs();
714 assert_eq!(verbs.len(), 6);
715 assert!(verbs.contains(&"session-start"));
716 assert!(verbs.contains(&"session-end"));
717 assert!(verbs.contains(&"user-prompt"));
718 assert!(verbs.contains(&"stop"));
719 assert!(verbs.contains(&"before-tool"));
720 assert!(verbs.contains(&"after-tool"));
721 }
722
723 #[test]
724 fn test_default() {

Callers

nothing calls this directly

Calls 2

make_hookFunction · 0.70
hook_verbsMethod · 0.45

Tested by

no test coverage detected