Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestDecompressor (0.25 sec)

  1. src/compress/zlib/reader_test.go

    		io.ErrUnexpectedEOF,
    	},
    	{
    		"truncated zlib stream amid fixed-block",
    		"He",
    		[]byte{
    			0x78, 0x9c, 0xf2, 0x48, 0xcd,
    		},
    		nil,
    		io.ErrUnexpectedEOF,
    	},
    }
    
    func TestDecompressor(t *testing.T) {
    	b := new(bytes.Buffer)
    	for _, tt := range zlibTests {
    		in := bytes.NewReader(tt.compressed)
    		zr, err := NewReaderDict(in, tt.dict)
    		if err != nil {
    			if err != tt.err {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 30 02:16:17 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  2. src/compress/gzip/gunzip_test.go

    			0x02, 0x00, 0x2d, 0x3b, 0x08, 0xaf, 0x0c, 0x00,
    			0x00, 0x00,
    			0x1f, 0x8b, 0x08, 0x10, 0x00, 0x00, 0x00, 0x00,
    			0x00, 0xff, 0x01,
    		},
    		io.ErrUnexpectedEOF,
    	},
    }
    
    func TestDecompressor(t *testing.T) {
    	// Keep resetting this reader.
    	// It is intended behavior that Reader.Reset can be called on a zero-value
    	// Reader and be the equivalent as if NewReader was used instead.
    	r1 := new(Reader)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 12 15:06:07 UTC 2022
    - 19.5K bytes
    - Viewed (0)
Back to top