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

Function TestResolveDestination_ExplicitDirectory

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

Source from the content-addressed store, hash-verified

405}
406
407func TestResolveDestination_ExplicitDirectory(t *testing.T) {
408 mock := &mockFilesClient{}
409 got := resolveDestination(mock, "/local/a.txt", "/folder", true)
410 if got != "/folder/a.txt" {
411 t.Errorf("resolveDestination = %q, want /folder/a.txt", got)
412 }
413}
414
415func TestResolveDestination_ExplicitRootDirectory(t *testing.T) {
416 mock := &mockFilesClient{}

Callers

nothing calls this directly

Calls 1

resolveDestinationFunction · 0.85

Tested by

no test coverage detected