(t *testing.T)
| 45 | } |
| 46 | |
| 47 | func TestListFilesNonExistentDirectory(t *testing.T) { |
| 48 | t.Parallel() |
| 49 | |
| 50 | fs := afero.NewMemMapFs() |
| 51 | query := workspacesdk.LSRequest{ |
| 52 | Path: []string{"idontexist"}, |
| 53 | Relativity: workspacesdk.LSRelativityHome, |
| 54 | } |
| 55 | _, err := listFiles(fs, "", query) |
| 56 | require.ErrorIs(t, err, os.ErrNotExist) |
| 57 | } |
| 58 | |
| 59 | func TestListFilesPermissionDenied(t *testing.T) { |
| 60 | t.Parallel() |
nothing calls this directly
no test coverage detected