(t *testing.T, dir string)
| 174 | } |
| 175 | |
| 176 | func createTestingSchema(t *testing.T, dir string) string { |
| 177 | t.Helper() |
| 178 | schemafile := filepath.Join(dir, "values.schema.json") |
| 179 | if err := os.WriteFile(schemafile, []byte(testSchema), 0700); err != nil { |
| 180 | t.Fatalf("Failed to write schema to tmpdir: %s", err) |
| 181 | } |
| 182 | return schemafile |
| 183 | } |
no test coverage detected
searching dependent graphs…