Introduce ErrNotExist and ErrExist in io/fs package

This commit is contained in:
Ingo Oppermann
2023-07-19 16:42:30 +02:00
parent a03b38c4a6
commit bdcf4bdeb4
6 changed files with 44 additions and 40 deletions

View File

@@ -11,7 +11,7 @@ func TestHistorySource(t *testing.T) {
memfs, err := fs.NewMemFilesystem(fs.MemConfig{})
require.NoError(t, err)
s, err := NewHistorySource(memfs, "/foobar.json")
s, err := NewHistorySource(memfs, "./foobar.json")
require.NoError(t, err)
require.Nil(t, s)
}