MCPcopy
hub / github.com/rclone/rclone / TestDirTagOnFile

Function TestDirTagOnFile

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

Source from the content-addressed store, hash-verified

50}
51
52func TestDirTagOnFile(t *testing.T) {
53 for _, test := range []struct {
54 path string
55 want string
56 }{
57 {"a/b/c.txt", "1a/1b/c.txt"},
58 } {
59 ctx, err := newOptions("dir,prefix=1")
60 require.NoError(t, err)
61
62 got := Path(ctx, test.path, false)
63 assert.Equal(t, test.want, got)
64 }
65}
66
67func TestAllTag(t *testing.T) {
68 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…