Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for week (0.19 sec)

  1. cmd/update-notifier_test.go

    		{49 * time.Hour, "my_download_url", "2 days before the latest release"},
    		{7 * 24 * time.Hour, "my_download_url", "1 week before the latest release"},
    		{8 * 24 * time.Hour, "my_download_url", "1 week before the latest release"},
    		{15 * 24 * time.Hour, "my_download_url", "2 weeks before the latest release"},
    
    		// Testcase index 20
    		{30 * 24 * time.Hour, "my_download_url", "1 month before the latest release"},
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jul 31 15:36:19 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  2. cmd/metacache_test.go

    		lastUpdate:   metaCacheTestsetTimestamp.Add(-1 * time.Minute),
    		lastHandout:  metaCacheTestsetTimestamp,
    		dataVersion:  metacacheStreamVersion,
    	},
    	8: {
    		id:           "case-8-finished-a-week-ago",
    		bucket:       "bucket",
    		root:         "folder/finished",
    		recursive:    false,
    		status:       scanStateSuccess,
    		fileNotFound: false,
    		error:        "",
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Sep 08 18:06:45 GMT 2021
    - 6.8K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/issue29563/weak.go

    Austin Clements <******@****.***> 1683224724 -0400
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 277 bytes
    - Viewed (0)
  4. src/archive/tar/reader.go

    		// io.Seeker, but calling Seek always returns an error and performs
    		// no action. Thus, we try an innocent seek to the current position
    		// to see if Seek is really supported.
    		pos1, err := sr.Seek(0, io.SeekCurrent)
    		if pos1 >= 0 && err == nil {
    			// Seek seems supported, so perform the real Seek.
    			pos2, err := sr.Seek(n-1, io.SeekCurrent)
    			if pos2 < 0 || err != nil {
    				return err
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  5. src/archive/tar/tar_test.go

    	}
    	f.pos += int64(len(b))
    	return len(b), nil
    }
    
    func (f *testFile) Seek(pos int64, whence int) (int64, error) {
    	if pos == 0 && whence == io.SeekCurrent {
    		return f.pos, nil
    	}
    	if len(f.ops) == 0 {
    		return 0, errors.New("unexpected Seek operation")
    	}
    	s, ok := f.ops[0].(int64)
    	if !ok {
    		return 0, errors.New("unexpected Seek operation")
    	}
    
    	if s != pos || whence != io.SeekCurrent {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  6. src/bufio/bufio.go

    	err := b.err
    	b.err = nil
    	return err
    }
    
    // Peek returns the next n bytes without advancing the reader. The bytes stop
    // being valid at the next read call. If Peek returns fewer than n bytes, it
    // also returns an error explaining why the read is short. The error is
    // [ErrBufferFull] if n is larger than b's buffer size.
    //
    // Calling Peek prevents a [Reader.UnreadByte] or [Reader.UnreadRune] call from succeeding
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 12 14:39:08 GMT 2023
    - 21.8K bytes
    - Viewed (0)
  7. cmd/xl-storage-format-utils.go

    		crc ^= (xxh3.HashString(k) ^ 0x4ee3bbaf7ab2506b) + (xxh3.HashString(v) ^ 0x8da4c8da66194257)
    	}
    	return crc
    }
    
    // hashDeterministicBytes will return a deterministic (weak) hash for the map values.
    // Trivial collisions are avoided, but this is by no means a strong hash.
    func hashDeterministicBytes(m map[string][]byte) uint64 {
    	crc := uint64(0x1bbc7e1dde654743)
    	for k, v := range m {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  8. src/bufio/bufio_test.go

    	}
    	if _, err := buf.Peek(1); err != io.EOF {
    		t.Fatalf("want EOF got %v", err)
    	}
    
    	// Test for issue 3022, not exposing a reader's error on a successful Peek.
    	buf = NewReaderSize(dataAndEOFReader("abcd"), 32)
    	if s, err := buf.Peek(2); string(s) != "ab" || err != nil {
    		t.Errorf(`Peek(2) on "abcd", EOF = %q, %v; want "ab", nil`, string(s), err)
    	}
    	if s, err := buf.Peek(4); string(s) != "abcd" || err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  9. internal/config/policy/plugin/config.go

    	type opaResult struct {
    		Result bool `json:"result"`
    	}
    
    	respBody := bytes.NewReader(opaRespBytes)
    
    	var result opaResult
    	if err = json.NewDecoder(respBody).Decode(&result); err != nil {
    		respBody.Seek(0, 0)
    		var resultAllow opaResultAllow
    		if err = json.NewDecoder(respBody).Decode(&resultAllow); err != nil {
    			return false, err
    		}
    		return resultAllow.Result.Allow, nil
    	}
    
    	return result.Result, nil
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Sep 14 21:50:16 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  10. cmd/s3-zip-handlers.go

    	archiveTypeMetadataKey = ReservedMetadataPrefixLower + "archive-type" // "x-minio-internal-archive-type"
    	archiveInfoMetadataKey = ReservedMetadataPrefixLower + "archive-info" // "x-minio-internal-archive-info"
    
    	// Peek into a zip archive
    	xMinIOExtract = "x-minio-extract"
    )
    
    // splitZipExtensionPath splits the S3 path to the zip file and the path inside the zip:
    //
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 09 10:41:25 GMT 2024
    - 15.8K bytes
    - Viewed (0)
Back to top