Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Valid (0.12 sec)

  1. src/archive/zip/reader_test.go

    			},
    			{
    				Name:     "bar.txt",
    				Content:  []byte("bar\n"),
    				Modified: time.Date(1979, 11, 30, 0, 0, 0, 0, time.UTC),
    				Mode:     0666,
    			},
    		},
    	},
    	// Tests that we verify (and accept valid) crc32s on files
    	// with crc32s in their file header (not in data descriptors)
    	{
    		Name: "crc32-not-streamed.zip",
    		File: []ZipTestFile{
    			{
    				Name:     "foo.txt",
    				Content:  []byte("foo\n"),
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  2. src/archive/tar/reader_test.go

    	vectors := []struct {
    		input string // Input stream
    		cnt   int    // Expected number of headers read
    		err   error  // Expected error outcome
    	}{
    		{"", 0, io.EOF}, // Empty file is a "valid" tar file
    		{data1[:511], 0, io.ErrUnexpectedEOF},
    		{data1[:512], 1, io.ErrUnexpectedEOF},
    		{data1[:1024], 1, io.EOF},
    		{data1[:1536], 2, io.ErrUnexpectedEOF},
    		{data1[:2048], 2, io.EOF},
    		{data1, 2, io.EOF},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
Back to top