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

Function TestEncodeSingleMaskEdge

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

Source from the content-addressed store, hash-verified

86}
87
88func TestEncodeSingleMaskEdge(t *testing.T) {
89 for i, tc := range testCasesSingleEdge {
90 e := tc.mask
91 t.Run(strconv.FormatInt(int64(i), 10), func(t *testing.T) {
92 got := e.Encode(tc.in)
93 if got != tc.out {
94 t.Errorf("Encode(%q) want %q got %q", tc.in, tc.out, got)
95 }
96 got2 := e.Decode(got)
97 if got2 != tc.in {
98 t.Errorf("Decode(%q) want %q got %q", got, tc.in, got2)
99 }
100 })
101 }
102}
103
104func TestEncodeDoubleMaskEdge(t *testing.T) {
105 for i, tc := range testCasesDoubleEdge {

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…