(t *testing.T)
| 296 | } |
| 297 | |
| 298 | func loadCommandSchemaCatalog(t *testing.T) schemagen.CommandCatalog { |
| 299 | t.Helper() |
| 300 | |
| 301 | data := readJSONFile(t, "../docs/json-schema/v1/commands.json") |
| 302 | catalog, err := schemagen.DecodeCommandCatalog(data) |
| 303 | if err != nil { |
| 304 | t.Fatalf("decode command catalog: %v", err) |
| 305 | } |
| 306 | return catalog |
| 307 | } |
| 308 | |
| 309 | func loadJSONValueFile(t *testing.T, file string) any { |
| 310 | t.Helper() |
no test coverage detected