Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for io (0.13 sec)

  1. src/archive/tar/writer_test.go

    	}} {
    		w := NewWriter(io.Discard)
    		if err := w.WriteHeader(test.h); err != ErrFieldTooLong {
    			t.Errorf("%v: w.WriteHeader() = %v, want ErrFieldTooLong", test.name, err)
    		}
    	}
    }
    
    // testNonEmptyWriter wraps an io.Writer and ensures that
    // Write is never called with an empty buffer.
    type testNonEmptyWriter struct{ io.Writer }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  2. src/archive/zip/writer_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package zip
    
    import (
    	"bytes"
    	"compress/flate"
    	"encoding/binary"
    	"fmt"
    	"hash/crc32"
    	"io"
    	"io/fs"
    	"math/rand"
    	"os"
    	"strings"
    	"testing"
    	"testing/fstest"
    	"time"
    )
    
    // TODO(adg): a more sophisticated test suite
    
    type WriteTest struct {
    	Name   string
    	Data   []byte
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
Back to top