Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Page (0.16 sec)

  1. src/bytes/bytes_test.go

    			if pos != -1 {
    				t.Errorf("IndexByte(%q, 'x') = %v", b1, pos)
    			}
    		}
    	}
    }
    
    // test a small index across all page offsets
    func TestIndexByteSmall(t *testing.T) {
    	b := make([]byte, 5015) // bigger than a page
    	// Make sure we find the correct byte even when straddling a page.
    	for i := 0; i <= len(b)-15; i++ {
    		for j := 0; j < 15; j++ {
    			b[i+j] = byte(100 + j)
    		}
    		for j := 0; j < 15; j++ {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  2. cmd/object-api-listobjects_test.go

    			Prefixes: []string{"apache2-doc/", "apache2/", "azerty/"},
    		},
    	}
    
    	testCases := []struct {
    		// Inputs to ListObjects.
    		bucketName string
    		prefix     string
    		delimiter  string
    		page       int
    		// Expected output of ListObjects.
    		result ListObjectsInfo
    	}{
    		{testBuckets[0], "", "", 1, resultCases[0]},
    		{testBuckets[0], "a", "", 1, resultCases[0]},
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  3. cmd/xl-storage.go

    			}
    			return nil, dmTime, errUnsupportedDisk
    		}
    		return nil, dmTime, err
    	}
    
    	if discard {
    		// This discard is mostly true for DELETEEs
    		// so we need to make sure we do not keep
    		// page-cache references after.
    		defer disk.Fdatasync(f)
    	}
    
    	defer f.Close()
    
    	// Get size for precise allocation.
    	stat, err := f.Stat()
    	if err != nil {
    		buf, err = io.ReadAll(f)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  4. tests/migrate_test.go

    						columnType.Name(), length, 100, columnType)
    				}
    			case "age":
    				if v, ok := columnType.DefaultValue(); !ok || v != "18" {
    					t.Fatalf("column age default value should be correct, name: %v, column: %#v", columnType.Name(),
    						columnType)
    				}
    				if v, ok := columnType.Comment(); !ok || v != "my age" {
    					t.Fatalf("column age comment should be correct, name: %v, column: %#v", columnType.Name(),
    						columnType)
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
Back to top