MCPcopy Create free account
hub / github.com/dropbox/dbxcli / TestIsRemoteFolder_NotFound

Function TestIsRemoteFolder_NotFound

cmd/dropbox_path_test.go:121–130  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

119}
120
121func TestIsRemoteFolder_NotFound(t *testing.T) {
122 mock := &mockFilesClient{
123 getMetadataFn: func(arg *files.GetMetadataArg) (files.IsMetadata, error) {
124 return nil, fmt.Errorf("path/not_found/")
125 },
126 }
127 if isRemoteFolder(mock, "/nonexistent") {
128 t.Error("expected false for not found")
129 }
130}

Callers

nothing calls this directly

Calls 2

isRemoteFolderFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected