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

Function TestMakeRelocationArg

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

Source from the content-addressed store, hash-verified

45}
46
47func TestMakeRelocationArg(t *testing.T) {
48 arg, err := makeRelocationArg("src", "dst")
49 if err != nil {
50 t.Fatalf("makeRelocationArg error: %v", err)
51 }
52 if arg.FromPath != "/src" {
53 t.Errorf("FromPath = %q, want %q", arg.FromPath, "/src")
54 }
55 if arg.ToPath != "/dst" {
56 t.Errorf("ToPath = %q, want %q", arg.ToPath, "/dst")
57 }
58}
59
60func TestRelocationDestination(t *testing.T) {
61 tests := []struct {

Callers

nothing calls this directly

Calls 1

makeRelocationArgFunction · 0.85

Tested by

no test coverage detected