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

Function test_turn_event_display_with_tool

atomic-agent/src/event.rs:1314–1318  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1312
1313 #[test]
1314 fn test_turn_event_display_with_tool() {
1315 let event = TurnEvent::new("sess-abc", HookType::PreToolUse).with_tool_name("Task");
1316 let display = event.to_string();
1317 assert!(display.contains("tool=Task"));
1318 }
1319
1320 #[test]
1321 fn test_turn_event_serde_roundtrip() {

Callers

nothing calls this directly

Calls 1

with_tool_nameMethod · 0.45

Tested by

no test coverage detected