Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Comment (0.16 sec)

  1. src/archive/tar/writer_test.go

    				Name:     "file",
    				Uname:    strings.Repeat("long", 10),
    				PAXRecords: map[string]string{
    					"path":           "FILE", // Should be ignored
    					"GNU.sparse.map": "0,0",  // Should be ignored
    					"comment":        "Hello, 世界",
    					"GOLANG.pkg":     "tar",
    				},
    			}, nil},
    			testClose{nil},
    		},
    	}, {
    		// Craft a theoretically valid PAX archive with global headers.
    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

    		if err != nil {
    			t.Fatal(err)
    		}
    		if r.Comment != test.comment {
    			t.Fatalf("Reader.Comment: got %v, want %v", r.Comment, test.comment)
    		}
    	}
    }
    
    func TestWriterUTF8(t *testing.T) {
    	var utf8Tests = []struct {
    		name    string
    		comment string
    		nonUTF8 bool
    		flags   uint16
    	}{
    		{
    			name:    "hi, hello",
    			comment: "in the world",
    			flags:   0x8,
    		},
    		{
    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