(t *testing.T, command string, schema jsonGoldenCommandSchema, definitions map[string][]string)
| 1216 | } |
| 1217 | |
| 1218 | func assertGoldenCommandSchemaReferences(t *testing.T, command string, schema jsonGoldenCommandSchema, definitions map[string][]string) { |
| 1219 | t.Helper() |
| 1220 | |
| 1221 | refs := []string{schema.TopLevel, schema.ResultWrapper, schema.Input, schema.Result} |
| 1222 | if schema.ResultInput != nil { |
| 1223 | refs = append(refs, *schema.ResultInput) |
| 1224 | } |
| 1225 | for _, ref := range refs { |
| 1226 | if _, ok := definitions[ref]; !ok { |
| 1227 | t.Errorf("golden schema for %q references unknown definition %q", command, ref) |
| 1228 | } |
| 1229 | } |
| 1230 | } |
| 1231 | |
| 1232 | func assertGoldenCommandStatuses(t *testing.T, command string, schema jsonGoldenCommandSchema) { |
| 1233 | t.Helper() |
no outgoing calls
no test coverage detected