Home | History | Annotate | Download | only in base32

Lines Matching refs:testEqual

45 func testEqual(t *testing.T, msg string, args ...interface{}) bool {
56 testEqual(t, "Encode(%q) = %q, want %q", p.decoded, got, p.encoded)
66 testEqual(t, "Encode(%q) = %q, want %q", p.decoded, bb.String(), p.encoded)
81 testEqual(t, "Write(%q) gave error %v, want %v", input[pos:end], err, error(nil))
82 testEqual(t, "Write(%q) gave length %v, want %v", input[pos:end], n, end-pos)
85 testEqual(t, "Close gave error %v, want %v", err, error(nil))
86 testEqual(t, "Encoding/%d of %q = %q, want %q", bs, bigtest.decoded, bb.String(), bigtest.encoded)
94 testEqual(t, "Decode(%q) = error %v, want %v", p.encoded, err, error(nil))
95 testEqual(t, "Decode(%q) = length %v, want %v", p.encoded, count, len(p.decoded))
97 testEqual(t, "Decode(%q) = end %v, want %v", p.encoded, end, (p.encoded[len(p.encoded)-1] == '='))
99 testEqual(t, "Decode(%q) = %q, want %q", p.encoded,
104 testEqual(t, "DecodeString(%q) = error %v, want %v", p.encoded, err, error(nil))
105 testEqual(t, "DecodeString(%q) = %q, want %q", p.encoded, string(dbuf), p.decoded)
117 testEqual(t, "Read from %q = length %v, want %v", p.encoded, count, len(p.decoded))
118 testEqual(t, "Decoding of %q = %q, want %q", p.encoded, string(dbuf[0:count]), p.decoded)
122 testEqual(t, "Read from %q = %v, want %v", p.encoded, err, io.EOF)
133 testEqual(t, "Read from %q at pos %d = %d, %v, want _, %v", bigtest.encoded, total, n, err, error(nil))
136 testEqual(t, "Decoding/%d of %q = %q, want %q", bs, bigtest.encoded, string(buf[0:total]), bigtest.decoded)
180 testEqual(t, "Corruption in %q at offset %v, want %v", tc.input, int(err), tc.offset)