Home | History | Annotate | Download | only in base64

Lines Matching refs:testEqual

100 func testEqual(t *testing.T, msg string, args ...interface{}) bool {
112 testEqual(t, "Encode(%q) = %q, want %q", p.decoded,
124 testEqual(t, "Encode(%q) = %q, want %q", p.decoded, bb.String(), p.encoded)
139 testEqual(t, "Write(%q) gave error %v, want %v", input[pos:end], err, error(nil))
140 testEqual(t, "Write(%q) gave length %v, want %v", input[pos:end], n, end-pos)
143 testEqual(t, "Close gave error %v, want %v", err, error(nil))
144 testEqual(t, "Encoding/%d of %q = %q, want %q", bs, bigtest.decoded, bb.String(), bigtest.encoded)
154 testEqual(t, "Decode(%q) = error %v, want %v", encoded, err, error(nil))
155 testEqual(t, "Decode(%q) = length %v, want %v", encoded, count, len(p.decoded))
157 testEqual(t, "Decode(%q) = end %v, want %v", encoded, end, len(p.decoded)%3 != 0)
159 testEqual(t, "Decode(%q) = %q, want %q", encoded, string(dbuf[0:count]), p.decoded)
162 testEqual(t, "DecodeString(%q) = error %v, want %v", encoded, err, error(nil))
163 testEqual(t, "DecodeString(%q) = %q, want %q", string(dbuf), p.decoded)
176 testEqual(t, "Read from %q = length %v, want %v", p.encoded, count, len(p.decoded))
177 testEqual(t, "Decoding of %q = %q, want %q", p.encoded, string(dbuf[0:count]), p.decoded)
181 testEqual(t, "Read from %q = %v, want %v", p.encoded, err, io.EOF)
192 testEqual(t, "Read from %q at pos %d = %d, %v, want _, %v", bigtest.encoded, total, n, err, error(nil))
195 testEqual(t, "Decoding/%d of %q = %q, want %q", bs, bigtest.encoded, string(buf[0:total]), bigtest.decoded)
235 testEqual(t, "Corruption in %q at offset %v, want %v", tc.input, int(err), tc.offset)