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

Function TestIsRemoteFolder_File

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

Source from the content-addressed store, hash-verified

108}
109
110func TestIsRemoteFolder_File(t *testing.T) {
111 mock := &mockFilesClient{
112 getMetadataFn: func(arg *files.GetMetadataArg) (files.IsMetadata, error) {
113 return &files.FileMetadata{}, nil
114 },
115 }
116 if isRemoteFolder(mock, "/file.txt") {
117 t.Error("expected false for file metadata")
118 }
119}
120
121func TestIsRemoteFolder_NotFound(t *testing.T) {
122 mock := &mockFilesClient{

Callers

nothing calls this directly

Calls 2

isRemoteFolderFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected