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

Function test_hook_verbs

atomic-agent/src/hooks/cursor.rs:828–838  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

826
827 #[test]
828 fn test_hook_verbs() {
829 let hook = make_hook();
830 let verbs = hook.hook_verbs();
831 assert_eq!(verbs.len(), 6);
832 assert!(verbs.contains(&"session-start"));
833 assert!(verbs.contains(&"session-end"));
834 assert!(verbs.contains(&"user-prompt-submit"));
835 assert!(verbs.contains(&"stop"));
836 assert!(verbs.contains(&"post-tool"));
837 assert!(verbs.contains(&"after-thought"));
838 }
839
840 #[test]
841 fn test_default() {

Callers

nothing calls this directly

Calls 2

make_hookFunction · 0.70
hook_verbsMethod · 0.45

Tested by

no test coverage detected