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

Function test_parse_post_tool

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

Source from the content-addressed store, hash-verified

549
550 #[test]
551 fn test_parse_post_tool() {
552 let hook = make_hook();
553 let input = br#"{"session_id":"devin-123","action":"write","file":"src/main.rs"}"#;
554 let event = hook.parse_event(HookType::PostToolUse, input).unwrap();
555 assert_eq!(event.session_id, "devin-123");
556 assert_eq!(event.event_type, HookType::PostToolUse);
557 assert_eq!(event.tool_name.as_deref(), Some("write"));
558 }
559
560 #[test]
561 fn test_parse_post_tool_command() {

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected