(t *testing.T)
| 105 | } |
| 106 | |
| 107 | func TestToolBridge_CallToolJSON_InvalidJSON(t *testing.T) { |
| 108 | registry := tools.NewRegistry() |
| 109 | bridge := NewToolBridge(registry) |
| 110 | ctx := context.Background() |
| 111 | |
| 112 | result, err := bridge.CallToolJSON(ctx, "AnyTool", "not valid json", nil) |
| 113 | if err != nil { |
| 114 | t.Fatalf("CallToolJSON returned error: %v", err) |
| 115 | } |
| 116 | |
| 117 | if result.Success { |
| 118 | t.Error("expected failure for invalid JSON") |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | func TestToolBridge_BatchCall(t *testing.T) { |
| 123 | registry := tools.NewRegistry() |
nothing calls this directly
no test coverage detected