Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestWriterCopy (0.09 sec)

  1. src/archive/zip/writer_test.go

    	}
    
    	binary.LittleEndian.PutUint32(sig[:], uint32(dataDescriptorSignature))
    	if bytes.Contains(b, sig[:]) {
    		t.Error("there should be no data descriptor")
    	}
    }
    
    func TestWriterCopy(t *testing.T) {
    	// make a zip file
    	buf := new(bytes.Buffer)
    	w := NewWriter(buf)
    	for _, wt := range writeTests {
    		testCreate(t, w, &wt)
    	}
    	if err := w.Close(); err != nil {
    		t.Fatal(err)
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top