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

Function TestResolveDestination_TargetNotFound

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

Source from the content-addressed store, hash-verified

393}
394
395func TestResolveDestination_TargetNotFound(t *testing.T) {
396 mock := &mockFilesClient{
397 getMetadataFn: func(arg *files.GetMetadataArg) (files.IsMetadata, error) {
398 return nil, fmt.Errorf("path/not_found/")
399 },
400 }
401 got := resolveDestination(mock, "/local/a.txt", "/new-name", false)
402 if got != "/new-name" {
403 t.Errorf("resolveDestination = %q, want /new-name", got)
404 }
405}
406
407func TestResolveDestination_ExplicitDirectory(t *testing.T) {
408 mock := &mockFilesClient{}

Callers

nothing calls this directly

Calls 1

resolveDestinationFunction · 0.85

Tested by

no test coverage detected