Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for hugo (0.47 sec)

  1. src/archive/zip/zip_test.go

    // 0xFFFFFFFF, but not before.
    func TestZip64DirectoryOffset(t *testing.T) {
    	if testing.Short() {
    		t.Skip("skipping in short mode")
    	}
    	t.Parallel()
    	const filename = "huge.txt"
    	gen := func(wantOff uint64) func(*Writer) {
    		return func(w *Writer) {
    			w.testHookCloseSizeOffset = func(size, off uint64) {
    				if off != wantOff {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  2. cmd/update-notifier_test.go

    		older time.Duration
    		dlURL string
    
    		expectedSubStr string
    	}{
    		// Testcase index 0
    		{72 * time.Hour, "my_download_url", "3 days before the latest release"},
    		{3 * time.Hour, "https://my_download_url_is_huge/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "3 hours before the latest release"},
    		{-72 * time.Hour, "another_update_url", ""},
    		{0, "another_update_url", ""},
    		{time.Hour, "", ""},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jul 31 15:36:19 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  3. src/bufio/scan_test.go

    	s.Split(c.split)
    	for s.Scan() {
    	}
    	if s.Err() != nil {
    		t.Fatal("after scan:", s.Err())
    	}
    	if c != 0 {
    		t.Fatalf("stopped with %d left to process", c)
    	}
    }
    
    // Make sure we can read a huge token if a big enough buffer is provided.
    func TestHugeBuffer(t *testing.T) {
    	text := strings.Repeat("x", 2*MaxScanTokenSize)
    	s := NewScanner(strings.NewReader(text + "\n"))
    	s.Buffer(make([]byte, 100), 3*MaxScanTokenSize)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Viewed (0)
Back to top