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

Function TestIsRemoteFolder_Folder

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

Source from the content-addressed store, hash-verified

97}
98
99func TestIsRemoteFolder_Folder(t *testing.T) {
100 mock := &mockFilesClient{
101 getMetadataFn: func(arg *files.GetMetadataArg) (files.IsMetadata, error) {
102 return &files.FolderMetadata{Metadata: files.Metadata{PathDisplay: arg.Path}}, nil
103 },
104 }
105 if !isRemoteFolder(mock, "/Videos") {
106 t.Error("expected true for folder metadata")
107 }
108}
109
110func TestIsRemoteFolder_File(t *testing.T) {
111 mock := &mockFilesClient{

Callers

nothing calls this directly

Calls 2

isRemoteFolderFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected