22type negativeReader struct{}
23
24▶func (r *negativeReader) Read([]byte) (int, error) { return -1, nil }
25
26func init() {
· · ·
26▶func init() {
27 testBytes = make([]byte, N)
28 for i := 0; i < N; i++ {
· · ·
33
34// Verify that contents of buf match the string s.
35▶func check(t *testing.T, testname string, buf *Buffer, s string) {
36 bytes := buf.Bytes()
37 str := buf.String()
· · ·
56// The initial contents of buf corresponds to the string s;
57// the result is the final contents of buf returned as a string.
58▶func fillString(t *testing.T, testname string, buf *Buffer, s string, n int, fus string) string {
59 check(t, testname+" (fill 1)", buf, s)
60 for ; n > 0; n-- {
· · ·
75// The initial contents of buf corresponds to the string s;
76// the result is the final contents of buf returned as a string.
77▶func fillBytes(t *testing.T, testname string, buf *Buffer, s string, n int, fub []byte) string {
78 check(t, testname+" (fill 1)", buf, s)
79 for ; n > 0; n-- {
+ 46 more matches in this file