MCPcopy Index your code
hub / github.com/rclone/rclone / TestAllTag

Function TestAllTag

lib/transform/transform_test.go:67–80  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

65}
66
67func TestAllTag(t *testing.T) {
68 for _, test := range []struct {
69 path string
70 want string
71 }{
72 {"a/b/c.txt", "1a/1b/1c.txt"},
73 } {
74 ctx, err := newOptions("all,prefix=1")
75 require.NoError(t, err)
76
77 got := Path(ctx, test.path, false)
78 assert.Equal(t, test.want, got)
79 }
80}
81
82func TestFileTagOnDir(t *testing.T) {
83 for _, test := range []struct {

Callers

nothing calls this directly

Calls 3

PathFunction · 0.85
newOptionsFunction · 0.70
EqualMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…