Lines Matching refs:w
70 w := NewWriter(buf)
73 testCreate(t, w, &wt)
76 if err := w.Close(); err != nil {
104 w := NewWriter(buf)
105 w.SetOffset(int64(n))
108 testCreate(t, w, &wt)
111 if err := w.Close(); err != nil {
127 w := NewWriter(struct{ io.Writer }{&buf})
128 _, err := w.Create("foo")
135 if err := w.Flush(); err != nil {
143 func testCreate(t *testing.T, w *Writer, wt *WriteTest) {
151 f, err := w.CreateHeader(header)
191 w, _ := zw.CreateHeader(&FileHeader{
195 w.Write(bigBuf)