--- toolResult ---
(t *testing.T)
| 339 | // --- toolResult --- |
| 340 | |
| 341 | func TestToolResult_ValidMap(t *testing.T) { |
| 342 | res, err := toolResult(map[string]any{"key": "value"}) |
| 343 | if err != nil { |
| 344 | t.Fatalf("unexpected error: %v", err) |
| 345 | } |
| 346 | if res == nil { |
| 347 | t.Fatal("expected non-nil result") |
| 348 | } |
| 349 | } |
| 350 | |
| 351 | func TestToolResult_MarshalError(t *testing.T) { |
| 352 | _, err := toolResult(map[string]any{"bad": make(chan int)}) |
nothing calls this directly
no test coverage detected