Home | History | Annotate | Download | only in bytes

Lines Matching full:testname

29 func check(t *testing.T, testname string, buf *Buffer, s string) {
33 t.Errorf("%s: buf.Len() == %d, len(buf.Bytes()) == %d", testname, buf.Len(), len(bytes))
37 t.Errorf("%s: buf.Len() == %d, len(buf.String()) == %d", testname, buf.Len(), len(str))
41 t.Errorf("%s: buf.Len() == %d, len(s) == %d", testname, buf.Len(), len(s))
45 t.Errorf("%s: string(buf.Bytes()) == %q, s == %q", testname, string(bytes), s)
52 func fillString(t *testing.T, testname string, buf *Buffer, s string, n int, fus string) string {
53 check(t, testname+" (fill 1)", buf, s)
57 t.Errorf(testname+" (fill 2): m == %d, expected %d", m, len(fus))
60 t.Errorf(testname+" (fill 3): err should always be nil, found err == %s", err)
63 check(t, testname+" (fill 4)", buf, s)
71 func fillBytes(t *testing.T, testname string, buf *Buffer, s string, n int, fub []byte) string {
72 check(t, testname+" (fill 1)", buf, s)
76 t.Errorf(testname+" (fill 2): m == %d, expected %d", m, len(fub))
79 t.Errorf(testname+" (fill 3): err should always be nil, found err == %s", err)
82 check(t, testname+" (fill 4)", buf, s)
99 func empty(t *testing.T, testname string, buf *Buffer, s string, fub []byte) {
100 check(t, testname+" (empty 1)", buf, s)
108 t.Errorf(testname+" (empty 2): err should always be nil, found err == %s", err)
111 check(t, testname+" (empty 3)", buf, s)
114 check(t, testname+" (empty 4)", buf, "")