• Kirill Smelkov's avatar
    fuse/test: TestFopenKeepCache: denoise · 0d80af72
    Kirill Smelkov authored
    We have many calls to ioutil.WriteFile and ioutil.ReadFile + checking
    for error. Move those calls into utility functions which call t.Fatal if
    they see any error. No need to use additional error prefix as both
    ioutil.WriteFile and ReadFile produce os.PathError which always has
    opertion and path on which it was performed.
    0d80af72
cache_test.go 5.04 KB