MCPcopy
hub / github.com/grpc/grpc-go / removeTmpFile

Function removeTmpFile

credentials/tls/certprovider/pemfile/watcher_test.go:180–186  ·  view source on GitHub ↗
(t *testing.T, filePath string)

Source from the content-addressed store, hash-verified

178}
179
180func removeTmpFile(t *testing.T, filePath string) {
181 t.Helper()
182 if err := os.Remove(filePath); err != nil {
183 t.Fatalf("os.RemoveFIle(%q) failed: %v", filePath, err)
184 }
185 t.Logf("Removed file at: %s", filePath)
186}
187
188// createTempDirWithFiles creates a temporary directory under the system default
189// tempDir with the given dirSuffix. It also reads from certSrc, keySrc and

Calls 3

FatalfMethod · 0.65
LogfMethod · 0.65
RemoveMethod · 0.45

Tested by

no test coverage detected