(t *testing.T)
| 156 | } |
| 157 | |
| 158 | func TestAPITool_DefaultOutputSchema(t *testing.T) { |
| 159 | t.Parallel() |
| 160 | |
| 161 | tool := New(latest.APIToolConfig{ |
| 162 | Name: "default-schema", |
| 163 | Method: http.MethodGet, |
| 164 | Endpoint: "https://example.com/api", |
| 165 | }, testExpander()) |
| 166 | |
| 167 | toolsList, err := tool.Tools(t.Context()) |
| 168 | require.NoError(t, err) |
| 169 | require.Len(t, toolsList, 1) |
| 170 | |
| 171 | assert.Equal(t, tools.MustSchemaFor[string](), toolsList[0].OutputSchema) |
| 172 | } |
| 173 | |
| 174 | func TestAPITool_CustomOutputSchema(t *testing.T) { |
| 175 | t.Parallel() |
nothing calls this directly
no test coverage detected