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

Function TestResolveDestination_TargetIsFile

cmd/put_test.go:383–393  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

381}
382
383func TestResolveDestination_TargetIsFile(t *testing.T) {
384 mock := &mockFilesClient{
385 getMetadataFn: func(arg *files.GetMetadataArg) (files.IsMetadata, error) {
386 return &files.FileMetadata{}, nil
387 },
388 }
389 got := resolveDestination(mock, "/local/a.txt", "/existing.txt", false)
390 if got != "/existing.txt" {
391 t.Errorf("resolveDestination = %q, want /existing.txt", got)
392 }
393}
394
395func TestResolveDestination_TargetNotFound(t *testing.T) {
396 mock := &mockFilesClient{

Callers

nothing calls this directly

Calls 1

resolveDestinationFunction · 0.85

Tested by

no test coverage detected