(t *testing.T, command string, got, want jsonGoldenCommandSchema)
| 1202 | } |
| 1203 | |
| 1204 | func assertGoldenCommandSchemaEqual(t *testing.T, command string, got, want jsonGoldenCommandSchema) { |
| 1205 | t.Helper() |
| 1206 | |
| 1207 | got = normalizeGoldenCommandSchema(got) |
| 1208 | want = normalizeGoldenCommandSchema(want) |
| 1209 | if reflect.DeepEqual(got, want) { |
| 1210 | return |
| 1211 | } |
| 1212 | |
| 1213 | gotJSON, _ := json.MarshalIndent(got, "", " ") |
| 1214 | wantJSON, _ := json.MarshalIndent(want, "", " ") |
| 1215 | t.Errorf("golden schema for %q = %s, want %s", command, gotJSON, wantJSON) |
| 1216 | } |
| 1217 | |
| 1218 | func assertGoldenCommandSchemaReferences(t *testing.T, command string, schema jsonGoldenCommandSchema, definitions map[string][]string) { |
| 1219 | t.Helper() |
no test coverage detected