- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 93 for maxInt (0.13 sec)
-
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) -
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) -
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) -
src/bytes/bytes_test.go
} } } maxWnd := windows[len(windows)-1] for i := 0; i <= 2*maxWnd; i++ { for _, window := range windows { if window > len(b[i:]) { window = len(b[i:]) } testCountWindow(i, window) for j := 0; j < window; j++ { b[i+j] = byte(0) } } } for i := 4096 - (maxWnd + 1); i < len(b); i++ { for _, window := range windows {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 12:58:37 UTC 2024 - 56.5K bytes - Viewed (0) -
src/encoding/gob/dec_helpers.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 24 19:28:46 UTC 2023 - 15.4K bytes - Viewed (0) -
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) -
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) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go
errs, _ := celValidator.Validate(ctx, field.NewPath("root"), &tt.schema, tt.obj, nil, math.MaxInt) if len(errs) != 0 { t.Errorf("expected no errors, but got: %v", errs) } }) t.Run("non-null old", func(t *testing.T) { errs, _ := celValidator.Validate(ctx, field.NewPath("root"), &tt.schema, tt.obj, tt.oldObj, math.MaxInt) if len(errs) != 0 { t.Errorf("expected no errors, but got: %v", errs)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 17:14:10 UTC 2024 - 159.9K bytes - Viewed (0) -
src/cmd/cgo/gcc.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 97K bytes - Viewed (0) -
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)