Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 59 for ErrRange (0.09 sec)

  1. src/strconv/atof_test.go

    	{"2e308", "+Inf", ErrRange},
    	{"1e309", "+Inf", ErrRange},
    	{"0x1p1025", "+Inf", ErrRange},
    
    	// way too large
    	{"1e310", "+Inf", ErrRange},
    	{"-1e310", "-Inf", ErrRange},
    	{"1e400", "+Inf", ErrRange},
    	{"-1e400", "-Inf", ErrRange},
    	{"1e400000", "+Inf", ErrRange},
    	{"-1e400000", "-Inf", ErrRange},
    	{"0x1p1030", "+Inf", ErrRange},
    	{"0x1p2000", "+Inf", ErrRange},
    	{"0x1p2000000000", "+Inf", ErrRange},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 16:24:57 UTC 2022
    - 23.6K bytes
    - Viewed (0)
  2. src/strconv/atoi_test.go

    	{"18446744073709551616", 0, 1<<64 - 1, ErrRange},
    	{"18446744073709551620", 0, 1<<64 - 1, ErrRange},
    	{"0xFFFFFFFFFFFFFFFF", 0, 1<<64 - 1, nil},
    	{"0x10000000000000000", 0, 1<<64 - 1, ErrRange},
    	{"01777777777777777777777", 0, 1<<64 - 1, nil},
    	{"01777777777777777777778", 0, 0, ErrSyntax},
    	{"02000000000000000000000", 0, 1<<64 - 1, ErrRange},
    	{"0200000000000000000000", 0, 1 << 61, nil},
    	{"0b", 0, 0, ErrSyntax},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 21 05:09:21 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  3. src/flag/flag.go

    // It then gets wrapped through failf to provide more information.
    var errParse = errors.New("parse error")
    
    // errRange is returned by Set if a flag's value is out of range.
    // It then gets wrapped through failf to provide more information.
    var errRange = errors.New("value out of range")
    
    func numError(err error) error {
    	ne, ok := err.(*strconv.NumError)
    	if !ok {
    		return err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 39.7K bytes
    - Viewed (0)
  4. src/encoding/gob/decode.go

    	"internal/saferio"
    	"io"
    	"math"
    	"math/bits"
    	"reflect"
    )
    
    var (
    	errBadUint = errors.New("gob: encoded unsigned integer out of range")
    	errBadType = errors.New("gob: unknown type id or corrupted data")
    	errRange   = errors.New("gob: bad data: field numbers out of bounds")
    )
    
    type decHelper func(state *decoderState, v reflect.Value, length int, ovfl error) bool
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:10:23 UTC 2023
    - 40.1K bytes
    - Viewed (0)
  5. src/strconv/atof.go

    //
    // If s is syntactically well-formed but is more than 1/2 ULP
    // away from the largest floating point number of the given size,
    // ParseFloat returns f = ±Inf, err.Err = ErrRange.
    //
    // ParseFloat recognizes the string "NaN", and the (possibly signed) strings "Inf" and "Infinity"
    // as their respective special floating point values. It ignores case when matching.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 06 18:50:50 UTC 2022
    - 15.9K bytes
    - Viewed (0)
  6. 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)
  7. pkg/util/goroutinemap/goroutinemap_test.go

    	// exponential backoff).
    	initialOperationWaitTimeLong time.Duration = 500 * time.Millisecond
    )
    
    func Test_NewGoRoutineMap_Positive_SingleOp(t *testing.T) {
    	// Arrange
    	grm := NewGoRoutineMap(false /* exponentialBackOffOnError */)
    	operationName := "operation-name"
    	operation := func() error { return nil }
    
    	// Act
    	err := grm.Run(operationName, operation)
    
    	// Assert
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 11 14:09:48 UTC 2017
    - 14.9K bytes
    - Viewed (0)
  8. pkg/volume/flexvolume/probe_test.go

    	assert.True(t, strings.HasSuffix(dir2, dir1))
    }
    
    // Probes a driver installed before prober initialization.
    func TestProberExistingDriverBeforeInit(t *testing.T) {
    	// Arrange
    	driverPath, _, watcher, prober := initTestEnvironment(t)
    
    	// Act
    	events, err := prober.Probe()
    
    	// Assert
    	// Probe occurs, 1 plugin should be returned, and 2 watches (pluginDir and all its
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 28 11:14:00 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  9. pkg/volume/util/nestedpendingoperations/nestedpendingoperations_test.go

    	// exponential backoff).
    	initialOperationWaitTimeLong time.Duration = 500 * time.Millisecond
    )
    
    func Test_NestedPendingOperations_Positive_SingleOp(t *testing.T) {
    	// Arrange
    	grm := NewNestedPendingOperations(false /* exponentialBackOffOnError */)
    	volumeName := v1.UniqueVolumeName("volume-name")
    
    	// Act
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 26 01:29:17 UTC 2022
    - 36.1K bytes
    - Viewed (0)
  10. pkg/controller/volume/attachdetach/cache/desired_state_of_world_test.go

    	"k8s.io/kubernetes/pkg/volume/util/types"
    )
    
    // Calls AddNode() once.
    // Verifies node exists, and zero volumes to attach.
    func Test_AddNode_Positive_NewNode(t *testing.T) {
    	// Arrange
    	volumePluginMgr, _ := volumetesting.GetTestVolumePluginMgr(t)
    	dsw := NewDesiredStateOfWorld(volumePluginMgr)
    	nodeName := k8stypes.NodeName("node-name")
    
    	// Act
    	dsw.AddNode(nodeName)
    
    	// Assert
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 10:42:15 UTC 2024
    - 35.9K bytes
    - Viewed (0)
Back to top