Home | History | Annotate | Download | only in base32

Lines Matching refs:Decoder

113 		decoder := NewDecoder(StdEncoding, strings.NewReader(p.encoded))
115 count, err := decoder.Read(dbuf)
122 count, err = decoder.Read(dbuf)
140 // the test passes to decoder.Read and will be a multiple of 8, unless
162 // TestIssue20044 tests that decoder.Read behaves correctly when the caller
192 // decoder error is returned.
198 // Check errors are properly reported when decoder.Read is called multiple times.
199 // decoder.Read will be called 8 times, badReader.Read will be called twice, returning
203 // Check io.EOF is properly reported when decoder.Read is called multiple times.
204 // decoder.Read will be called 8 times, badReader.Read will be called twice, returning
224 decoder := NewDecoder(StdEncoding, &tc.r)
236 n, err = decoder.Read(dbuf)
254 decoder := NewDecoder(StdEncoding, &br)
255 n, err := decoder.Read(dbuf)
263 // TestReaderEOF ensures decoder.Read behaves correctly when input data is
269 decoder := NewDecoder(StdEncoding, &br)
271 n, err := decoder.Read(dbuf)
273 n, err = decoder.Read(dbuf)
276 n, err = decoder.Read(dbuf)
284 decoder := NewDecoder(StdEncoding, strings.NewReader(bigtest.encoded))
290 n, err = decoder.Read(buf[total : total+bs])
334 t.Error("Decoder wrongly detected corruption in", tc.input)
342 t.Error("Decoder failed to detect corruption in", tc)