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

Function test_hook_verbs

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

Source from the content-addressed store, hash-verified

719
720 #[test]
721 fn test_hook_verbs() {
722 let hook = make_hook();
723 let verbs = hook.hook_verbs();
724 assert_eq!(verbs.len(), 6);
725 assert!(verbs.contains(&"session-start"));
726 assert!(verbs.contains(&"session-end"));
727 assert!(verbs.contains(&"user-prompt"));
728 assert!(verbs.contains(&"stop"));
729 assert!(verbs.contains(&"before-tool"));
730 assert!(verbs.contains(&"after-tool"));
731 }
732
733 #[test]
734 fn test_default() {

Callers

nothing calls this directly

Calls 2

make_hookFunction · 0.70
hook_verbsMethod · 0.45

Tested by

no test coverage detected