MCPcopy
hub / github.com/helm/helm / createTestingSchema

Function createTestingSchema

pkg/chart/v2/lint/rules/values_test.go:176–183  ·  view source on GitHub ↗
(t *testing.T, dir string)

Source from the content-addressed store, hash-verified

174}
175
176func 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}

Calls 3

HelperMethod · 0.80
FatalfMethod · 0.80
WriteFileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…