Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BeforeHeader (0.15 sec)

  1. src/archive/tar/writer_test.go

    		tw := NewWriter(new(bytes.Buffer))
    		hdr := &Header{Name: "small.txt", Size: -1}
    		if err := tw.WriteHeader(hdr); err == nil {
    			t.Fatalf("WriteHeader() = nil, want non-nil error")
    		}
    	})
    
    	t.Run("BeforeHeader", func(t *testing.T) {
    		tw := NewWriter(new(bytes.Buffer))
    		if _, err := tw.Write([]byte("Kilts")); err != ErrWriteTooLong {
    			t.Fatalf("Write() = %v, want %v", err, ErrWriteTooLong)
    		}
    	})
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 39.4K bytes
    - Viewed (0)
Back to top