Home | History | Annotate | Download | only in base32

Lines Matching refs:Decoded

16 	decoded, encoded string
55 got := StdEncoding.EncodeToString([]byte(p.decoded))
56 testEqual(t, "Encode(%q) = %q, want %q", p.decoded, got, p.encoded)
64 encoder.Write([]byte(p.decoded))
66 testEqual(t, "Encode(%q) = %q, want %q", p.decoded, bb.String(), p.encoded)
71 input := []byte(bigtest.decoded)
86 testEqual(t, "Encoding/%d of %q = %q, want %q", bs, bigtest.decoded, bb.String(), bigtest.encoded)
95 testEqual(t, "Decode(%q) = length %v, want %v", p.encoded, count, len(p.decoded))
101 p.decoded)
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)
129 buf := make([]byte, len(bigtest.decoded)+12)
131 for total = 0; total < len(bigtest.decoded); {
136 testEqual(t, "Decoding/%d of %q = %q, want %q", bs, bigtest.encoded, string(buf[0:total]), bigtest.decoded)
204 decoded, err := ioutil.ReadAll(NewDecoder(StdEncoding, encoded))
209 if !bytes.Equal(raw, decoded) {
211 for i = 0; i < len(decoded) && i < len(raw); i++ {
212 if decoded[i] != raw[i] {
284 t.Error("Decoded results not equal")