Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/archive/tar/writer_test.go

    		}
    		return x == y
    	}
    	for _, v := range vectors {
    		t.Run(path.Base(v.file), func(t *testing.T) {
    			const maxSize = 10 << 10 // 10KiB
    			buf := new(bytes.Buffer)
    			tw := NewWriter(iotest.TruncateWriter(buf, maxSize))
    
    			for i, tf := range v.tests {
    				switch tf := tf.(type) {
    				case testHeader:
    					err := tw.WriteHeader(&tf.hdr)
    					if !equalError(err, tf.wantErr) {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  2. api/go1.txt

    pkg testing/iotest, func NewWriteLogger(string, io.Writer) io.Writer
    pkg testing/iotest, func OneByteReader(io.Reader) io.Reader
    pkg testing/iotest, func TimeoutReader(io.Reader) io.Reader
    pkg testing/iotest, func TruncateWriter(io.Writer, int64) io.Writer
    pkg testing/iotest, var ErrTimeout error
    pkg testing/quick, func Check(interface{}, *Config) error
    pkg testing/quick, func CheckEqual(interface{}, interface{}, *Config) error
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top