Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 935 for maxint (0.1 sec)

  1. src/bytes/buffer_test.go

    		if err := recover(); err != ErrTooLarge {
    			t.Errorf("after too-large Grow, recover() = %v; want %v", err, ErrTooLarge)
    		}
    	}()
    
    	buf := NewBuffer(make([]byte, 1))
    	const maxInt = int(^uint(0) >> 1)
    	buf.Grow(maxInt)
    }
    
    // Was a bug: used to give EOF reading empty slice at EOF.
    func TestReadEmptyAtEOF(t *testing.T) {
    	b := new(Buffer)
    	slice := make([]byte, 0)
    	n, err := b.Read(slice)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:31:36 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  2. pkg/webhooks/validation/controller/controller.go

    	}
    
    	c.queue = controllers.NewQueue("validation",
    		controllers.WithReconciler(c.Reconcile),
    		// Webhook patching has to be retried forever. But the retries would be rate limited.
    		controllers.WithMaxAttempts(math.MaxInt),
    		// Retry with backoff. Failures could be from conflicts of other instances (quick retry helps), or
    		// longer lasting concerns which will eventually be retried on 1min interval.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 28 16:52:19 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  3. src/strings/strings_test.go

    			if err == nil || !Contains(err.Error(), tt.errStr) {
    				t.Errorf("%s#%d got %q want %q", prefix, i, err, tt.errStr)
    			}
    		}
    	}
    
    	const maxInt = int(^uint(0) >> 1)
    
    	runTestCases("", []testCase{
    		0: {"--", -2147483647, "negative"},
    		1: {"", maxInt, ""},
    		2: {"-", 10, ""},
    		3: {"gopher", 0, ""},
    		4: {"-", -1, "negative"},
    		5: {"--", -102, "negative"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  4. src/bytes/bytes_test.go

    				t.Errorf("%s#%d got %q want %q", prefix, i, err, tt.errStr)
    			}
    		}
    	}
    
    	const maxInt = int(^uint(0) >> 1)
    
    	runTestCases("", []testCase{
    		0: {"--", -2147483647, "negative"},
    		1: {"", maxInt, ""},
    		2: {"-", 10, ""},
    		3: {"gopher", 0, ""},
    		4: {"-", -1, "negative"},
    		5: {"--", -102, "negative"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  5. src/encoding/gob/dec_helpers.go

    		}
    		if i >= len(slice) {
    			// This is a slice that we only partially allocated.
    			growSlice(v, &slice, length)
    		}
    		x := state.decodeInt()
    		// MinInt and MaxInt
    		if x < ^int64(^uint(0)>>1) || int64(^uint(0)>>1) < x {
    			error_(ovfl)
    		}
    		slice[i] = int(x)
    	}
    	return true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 24 19:28:46 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/cel/types.go

    	"github.com/google/cel-go/common/types/traits"
    
    	exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1"
    	"google.golang.org/protobuf/proto"
    )
    
    const (
    	noMaxLength = math.MaxInt
    )
    
    // NewListType returns a parameterized list type with a specified element type.
    func NewListType(elem *DeclType, maxItems int64) *DeclType {
    	return &DeclType{
    		name:         "list",
    		ElemType:     elem,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 15:52:31 UTC 2023
    - 18K bytes
    - Viewed (0)
  7. src/net/tcpsock_test.go

    				}
    			}
    		}()
    	}
    	for i := 0; i < conns; i++ {
    		<-done
    	}
    	ln.Close()
    	<-done
    }
    
    // Test that >32-bit reads work on 64-bit systems.
    // On 32-bit systems this tests that maxint reads work.
    func TestTCPBig(t *testing.T) {
    	if !*testTCPBig {
    		t.Skip("test disabled; use -tcpbig to enable")
    	}
    
    	for _, writev := range []bool{false, true} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    			obj:    objs(math.MaxInt64, math.MaxInt64, math.MaxInt32, math.MaxInt32, math.MaxInt64, math.MaxInt64),
    			schema: schemas(integerType, integerType, int32Type, int32Type, int64Type, int64Type),
    			valid: []string{
    				ValsEqualThemselvesAndDataLiteral("self.val1", "self.val2", fmt.Sprintf("%d", math.MaxInt64)),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  9. src/cmd/cgo/gcc.go

    								if sdat, err := sect.Data(); err == nil {
    									data := sdat[s.Value-sect.Addr:]
    									strlen := bo.Uint64(data[:8])
    									if strlen > (1<<(uint(p.IntSize*8)-1) - 1) { // greater than MaxInt?
    										fatalf("string literal too big")
    									}
    									strlens[n] = int(strlen)
    								}
    							}
    						}
    						break
    					}
    				}
    			}
    
    			buildStrings()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  10. src/runtime/traceback.go

    	// cgo expansion boundaries. It's not clear that's much simpler.
    	flags |= unwindPrintErrors
    	var u unwinder
    	tracebackWithRuntime := func(showRuntime bool) int {
    		const maxInt int = 0x7fffffff
    		u.initAt(pc, sp, lr, gp, flags)
    		n, lastN := traceback2(&u, showRuntime, 0, tracebackInnerFrames)
    		if n < tracebackInnerFrames {
    			// We printed the whole stack.
    			return n
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 55.1K bytes
    - Viewed (0)
Back to top