MCPcopy Index your code
hub / github.com/coder/coder / TestListFilesNonExistentDirectory

Function TestListFilesNonExistentDirectory

agent/agentfiles/ls_internal_test.go:47–57  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

45}
46
47func 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
59func TestListFilesPermissionDenied(t *testing.T) {
60 t.Parallel()

Callers

nothing calls this directly

Calls 1

listFilesFunction · 0.85

Tested by

no test coverage detected