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

Function test_parse_after_thought_minimal

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

Source from the content-addressed store, hash-verified

1046
1047 #[test]
1048 fn test_parse_after_thought_minimal() {
1049 let hook = make_hook();
1050 let input = br#"{"conversation_id": "c1", "text": "thinking..."}"#;
1051 let event = hook.parse_event(HookType::PostToolUse, input).unwrap();
1052 assert_eq!(event.tool_name.as_deref(), Some("AgentThought"));
1053 let raw = event.raw_json.unwrap();
1054 assert_eq!(raw["reasoning_text"], "thinking...");
1055 }
1056
1057 // Error handling tests
1058

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected