Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for ErrRange (0.16 sec)

  1. src/math/big/int_test.go

    			t.Errorf("SetString(%s, 0) failed", s)
    			continue
    		}
    
    		want, err := strconv.ParseUint(s, 0, 64)
    		if err != nil {
    			// check for sign explicitly (ErrRange doesn't cover signed input)
    			if s[0] == '-' || err.(*strconv.NumError).Err == strconv.ErrRange {
    				if x.IsUint64() {
    					t.Errorf("IsUint64(%s) succeeded unexpectedly", s)
    				}
    			} else {
    				t.Errorf("ParseUint(%s) failed", s)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  2. cmd/api-errors.go

    			}
    			// Add more other SDK related errors here if any in future.
    		default:
    			//nolint:gocritic
    			if errors.Is(err, errMalformedEncoding) || errors.Is(err, errChunkTooBig) || errors.Is(err, strconv.ErrRange) {
    				apiErr = APIError{
    					Code:           "BadRequest",
    					Description:    err.Error(),
    					HTTPStatusCode: http.StatusBadRequest,
    				}
    			} else {
    				apiErr = APIError{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 92.1K bytes
    - Viewed (1)
  3. pkg/volume/util/operationexecutor/operation_executor_test.go

    	numDevicesToUnmap                    = 2
    )
    
    var _ OperationGenerator = &fakeOperationGenerator{}
    
    func TestOperationExecutor_MountVolume_ConcurrentMountForNonAttachableAndNonDevicemountablePlugins(t *testing.T) {
    	// Arrange
    	ch, quit, oe := setup()
    	volumesToMount := make([]VolumeToMount, numVolumesToMount)
    	secretName := "secret-volume"
    	volumeName := v1.UniqueVolumeName(secretName)
    
    	// Act
    	for i := range volumesToMount {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  4. src/net/http/h2_bundle.go

    			goto Error
    		}
    
    		if n >= cutoff {
    			// n*base overflows
    			n = 1<<64 - 1
    			err = strconv.ErrRange
    			goto Error
    		}
    		n *= uint64(base)
    
    		n1 := n + uint64(v)
    		if n1 < n || n1 > maxVal {
    			// n+v overflows
    			n = 1<<64 - 1
    			err = strconv.ErrRange
    			goto Error
    		}
    		n = n1
    	}
    
    	return n, nil
    
    Error:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 364.1K bytes
    - Viewed (0)
  5. pkg/kubelet/volumemanager/reconciler/reconstruct_test.go

    			volumesFailedReconstruction: []podVolume{defaultVolume},
    			expectedUnmounts:            1,
    		},
    	}
    	for _, tc := range tests {
    		t.Run(tc.name, func(t *testing.T) {
    			// Arrange
    			tmpKubeletDir, err := os.MkdirTemp("", "")
    			if err != nil {
    				t.Fatalf("can't make a temp directory for kubeletPods: %v", err)
    			}
    			defer os.RemoveAll(tmpKubeletDir)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  6. src/index/suffixarray/suffixarray_test.go

    		// Construct a pathological input that forces
    		// recurse_32 to allocate a new temporary buffer.
    		// The input must have more than N/3 LMS-substrings,
    		// which we arrange by repeating an SLSLSLSLSLSL pattern
    		// like ababab... above, but then we must also arrange
    		// for a large number of distinct LMS-substrings.
    		// We use this pattern:
    		// 1 255 1 254 1 253 1 ... 1 2 1 255 2 254 2 253 2 252 2 ...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. src/sync/rwmutex.go

    // not locked for writing on entry to Unlock.
    //
    // As with Mutexes, a locked [RWMutex] is not associated with a particular
    // goroutine. One goroutine may [RWMutex.RLock] ([RWMutex.Lock]) a RWMutex and then
    // arrange for another goroutine to [RWMutex.RUnlock] ([RWMutex.Unlock]) it.
    func (rw *RWMutex) Unlock() {
    	if race.Enabled {
    		_ = rw.w.state
    		race.Release(unsafe.Pointer(&rw.readerSem))
    		race.Disable()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  8. src/sync/mutex.go

    // Unlock unlocks m.
    // It is a run-time error if m is not locked on entry to Unlock.
    //
    // A locked [Mutex] is not associated with a particular goroutine.
    // It is allowed for one goroutine to lock a Mutex and then
    // arrange for another goroutine to unlock it.
    func (m *Mutex) Unlock() {
    	if race.Enabled {
    		_ = m.state
    		race.Release(unsafe.Pointer(m))
    	}
    
    	// Fast path: drop lock bit.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  9. src/sync/atomic/doc.go

    //
    // On non-Linux ARM, the 64-bit functions use instructions unavailable before the ARMv6k core.
    //
    // On ARM, 386, and 32-bit MIPS, it is the caller's responsibility to arrange
    // for 64-bit alignment of 64-bit words accessed atomically via the primitive
    // atomic functions (types [Int64] and [Uint64] are automatically aligned).
    // The first word in an allocated struct, array, or slice; in a global
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  10. src/embed/embed.go

    //	import "embed"
    //
    //	// content holds our static web server content.
    //	//go:embed image/* template/*
    //	//go:embed html/index.html
    //	var content embed.FS
    //
    // The Go build system will recognize the directives and arrange for the declared variable
    // (in the example above, content) to be populated with the matching files from the file system.
    //
    // The //go:embed directive accepts multiple space-separated patterns for
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:42:51 UTC 2024
    - 13.5K bytes
    - Viewed (0)
Back to top