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

Function test_parse_post_tool_command

atomic-agent/src/hooks/devin.rs:561–566  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

559
560 #[test]
561 fn test_parse_post_tool_command() {
562 let hook = make_hook();
563 let input = br#"{"session_id":"devin-123","action":"command","command":"cargo test"}"#;
564 let event = hook.parse_event(HookType::PostToolUse, input).unwrap();
565 assert_eq!(event.tool_name.as_deref(), Some("command"));
566 }
567
568 #[test]
569 fn test_parse_event_empty_input() {

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected