Home | History | Annotate | Download | only in io

Lines Matching defs:Write

103 func (c *writeStringChecker) Write(p []byte) (n int, err error) {
128 t.Errorf("short write of %d, not %d", written, len(sourceString))
148 func (f writerFunc) Write(p []byte) (int, error) {
171 mw.Write(nil) // don't care about errors, just want to check the call-depth for Write
173 if writeDepth != 4*(myDepth+2) { // 2 should be multiWriter.Write and writerFunc.Write
184 t.Errorf("MultiWriter called f2.Write")
188 n, err := w.Write(make([]byte, 100))
190 t.Errorf("Write = %d, %v, want 50, ErrShortWrite", n, err)
211 n, err := w.Write([]byte("hello world"))
213 t.Errorf("Write(`hello world`) = %d, %v, want 11, nil", n, err)