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

Function test_hook_verbs

atomic-agent/src/hooks/cline.rs:557–568  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

555
556 #[test]
557 fn test_hook_verbs() {
558 let hook = make_hook();
559 let verbs = hook.hook_verbs();
560 assert_eq!(verbs.len(), 7);
561 assert!(verbs.contains(&"task-start"));
562 assert!(verbs.contains(&"task-resume"));
563 assert!(verbs.contains(&"task-complete"));
564 assert!(verbs.contains(&"task-cancel"));
565 assert!(verbs.contains(&"user-prompt"));
566 assert!(verbs.contains(&"post-tool"));
567 assert!(verbs.contains(&"pre-tool"));
568 }
569
570 #[test]
571 fn test_default() {

Callers

nothing calls this directly

Calls 2

make_hookFunction · 0.70
hook_verbsMethod · 0.45

Tested by

no test coverage detected