(t *testing.T)
| 248 | } |
| 249 | |
| 250 | func TestFileRemove(t *testing.T) { |
| 251 | r, vfs, file, _ := fileCreate(t, vfscommon.CacheModeOff) |
| 252 | |
| 253 | err := file.Remove() |
| 254 | require.NoError(t, err) |
| 255 | |
| 256 | r.CheckRemoteItems(t) |
| 257 | |
| 258 | vfs.Opt.ReadOnly = true |
| 259 | err = file.Remove() |
| 260 | assert.Equal(t, EROFS, err) |
| 261 | } |
| 262 | |
| 263 | func TestFileRemoveAll(t *testing.T) { |
| 264 | r, vfs, file, _ := fileCreate(t, vfscommon.CacheModeOff) |
nothing calls this directly
no test coverage detected
searching dependent graphs…