MCPcopy
hub / github.com/rclone/rclone / TestFileTagOnFile

Function TestFileTagOnFile

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

Source from the content-addressed store, hash-verified

35}
36
37func TestFileTagOnFile(t *testing.T) {
38 for _, test := range []struct {
39 path string
40 want string
41 }{
42 {"a/b/c.txt", "a/b/1c.txt"},
43 } {
44 ctx, err := newOptions("file,prefix=1")
45 require.NoError(t, err)
46
47 got := Path(ctx, test.path, false)
48 assert.Equal(t, test.want, got)
49 }
50}
51
52func TestDirTagOnFile(t *testing.T) {
53 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…