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

Function TestValidatePathRootBecomesEmpty

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

Source from the content-addressed store, hash-verified

35}
36
37func TestValidatePathRootBecomesEmpty(t *testing.T) {
38 got, err := validatePath("/")
39 if err != nil {
40 t.Fatalf("validatePath('/') error: %v", err)
41 }
42 if got != "" {
43 t.Errorf("validatePath('/') = %q, want empty string for root", got)
44 }
45}
46
47func TestMakeRelocationArg(t *testing.T) {
48 arg, err := makeRelocationArg("src", "dst")

Callers

nothing calls this directly

Calls 1

validatePathFunction · 0.85

Tested by

no test coverage detected