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

Function TestFileTagOnDir

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

Source from the content-addressed store, hash-verified

80}
81
82func TestFileTagOnDir(t *testing.T) {
83 for _, test := range []struct {
84 path string
85 want string
86 }{
87 {"a/b", "a/b"},
88 } {
89 ctx, err := newOptions("file,prefix=1")
90 require.NoError(t, err)
91
92 got := Path(ctx, test.path, true)
93 assert.Equal(t, test.want, got)
94 }
95}
96
97func TestDirTagOnDir(t *testing.T) {
98 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…