MCPcopy Create free account
hub / github.com/ContentSquare/chproxy / Close

Method Close

cache/tmp_file_response_writer.go:46–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44}
45
46func (rw *TmpFileResponseWriter) Close() error {
47 rw.tmpFile.Close()
48 return os.Remove(rw.tmpFile.Name())
49}
50
51func (rw *TmpFileResponseWriter) GetFile() (*os.File, error) {
52 if err := rw.bw.Flush(); err != nil {

Callers 8

serveFromCacheMethod · 0.95
TestFileCreationFunction · 0.95
TestFileRemovalFunction · 0.95
TestWriteThenReadHeaderFunction · 0.95
TestWriteThenReadContentFunction · 0.95
TestCacheCleanFunction · 0.95
GetFileMethod · 0.45

Calls 1

NameMethod · 0.65

Tested by 6

TestFileCreationFunction · 0.76
TestFileRemovalFunction · 0.76
TestWriteThenReadHeaderFunction · 0.76
TestWriteThenReadContentFunction · 0.76
TestCacheCleanFunction · 0.76