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

Function TestEncodeDoubleMaskEdge

lib/encoder/encoder_test.go:104–118  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

102}
103
104func TestEncodeDoubleMaskEdge(t *testing.T) {
105 for i, tc := range testCasesDoubleEdge {
106 e := tc.mask
107 t.Run(strconv.FormatInt(int64(i), 10), func(t *testing.T) {
108 got := e.Encode(tc.in)
109 if got != tc.out {
110 t.Errorf("Encode(%q) want %q got %q", tc.in, tc.out, got)
111 }
112 got2 := e.Decode(got)
113 if got2 != tc.in {
114 t.Errorf("Decode(%q) want %q got %q", got, tc.in, got2)
115 }
116 })
117 }
118}
119
120func TestEncodeInvalidUnicode(t *testing.T) {
121 for i, tc := range []testCase{

Callers

nothing calls this directly

Calls 4

RunMethod · 0.65
EncodeMethod · 0.65
DecodeMethod · 0.65
ErrorfMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…