MCPcopy
hub / github.com/operator-framework/operator-sdk / removeFile

Function removeFile

internal/helm/watches/watches_test.go:325–332  ·  view source on GitHub ↗

remove removes path from disk. Used in defer statements.

(t *testing.T, f *os.File)

Source from the content-addressed store, hash-verified

323
324// remove removes path from disk. Used in defer statements.
325func removeFile(t *testing.T, f *os.File) {
326 if err := f.Close(); err != nil {
327 t.Fatal(err)
328 }
329 if err := os.Remove(f.Name()); err != nil {
330 t.Fatal(err)
331 }
332}

Callers 1

TestLoadFunction · 0.85

Calls 1

NameMethod · 0.45

Tested by

no test coverage detected