- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 27 for panicmem (0.39 sec)
-
src/time/tick_test.go
if err := recover(); err == nil { t.Errorf("NewTicker(-1) should have panicked") } }() NewTicker(-1) } // Test that Ticker.Reset panics when given a duration less than zero. func TestTickerResetLtZeroDuration(t *testing.T) { defer func() { if err := recover(); err == nil { t.Errorf("Ticker.Reset(0) should have panicked") } }() tk := NewTicker(Second) tk.Reset(0) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:10:37 UTC 2024 - 14.7K bytes - Viewed (0) -
src/testing/fuzz.go
} // Before resetting the current coverage, defer the snapshot so that // we make sure it is called right before the tRunner function // exits, regardless of whether it was executed cleanly, panicked, // or if the fuzzFn called t.Fatal. if f.testContext.isFuzzing { defer f.fuzzContext.deps.SnapshotCoverage() f.fuzzContext.deps.ResetCoverage() } fn.Call(args) }) <-t.signal
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 22:55:25 UTC 2024 - 22.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/validating/dispatcher.go
} return } // this ensures that the admission request fails and a message is provided. errCh <- apierrors.NewInternalError(fmt.Errorf("ValidatingAdmissionWebhook/%v has panicked: %v", hookName, r)) }, ) hook, ok := invocation.Webhook.GetValidatingWebhook() if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 23 20:24:12 UTC 2023 - 13K bytes - Viewed (0) -
cni/pkg/plugin/plugin.go
// Defer a panic recover, so that in case if panic we can still return // a proper error to the runtime. defer func() { if e := recover(); e != nil { msg := fmt.Sprintf("istio-cni panicked during cmdAdd: %v\n%v", e, string(debug.Stack())) if err != nil { // If we're recovering and there was also an error, then we need to // present both. msg = fmt.Sprintf("%s: %v", msg, err) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 16:26:35 UTC 2024 - 10.7K bytes - Viewed (0) -
src/runtime/stkframe.go
// instruction). In this case, pc-1 reflects the CALL // instruction itself and is the correct source of symbolic // information. // // - If this frame "called" sigpanic, then pc is the // instruction that panicked, and pc is the correct address // to use for symbolic information. // // - If this is the innermost frame, then PC is where // execution will continue, but it may not be the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 15:10:48 UTC 2024 - 9.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testing/testcase.go
AdmissionReviewVersions: []string{"v1beta1"}, }}, ExpectStatusCode: http.StatusForbidden, ErrorContains: "ValidatingAdmissionWebhook/allow.example.com has panicked: Start panicking!", ExpectAnnotations: map[string]string{}, }, { Name: "match & fail (but allow because fail open)", Webhooks: []registrationv1.ValidatingWebhook{{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 03 06:51:04 UTC 2023 - 47.6K bytes - Viewed (0) -
src/math/big/prime.go
// have crafted to fool the test. // // As of Go 1.8, ProbablyPrime(0) is allowed and applies only a Baillie-PSW test. // Before Go 1.8, ProbablyPrime applied only the Miller-Rabin tests, and ProbablyPrime(0) panicked. func (x *Int) ProbablyPrime(n int) bool { // Note regarding the doc comment above: // It would be more precise to say that the Baillie-PSW test uses the // extra strong Lucas test as its Lucas test, but since no one knows
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 02 14:43:52 UTC 2022 - 10.4K bytes - Viewed (0) -
src/log/slog/value.go
// Resolve's return value is guaranteed not to be of Kind [KindLogValuer]. func (v Value) Resolve() (rv Value) { orig := v defer func() { if r := recover(); r != nil { rv = AnyValue(fmt.Errorf("LogValue panicked\n%s", stack(3, 5))) } }() for i := 0; i < maxLogValues; i++ { if v.Kind() != KindLogValuer { return v } v = v.LogValuer().LogValue() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:12:08 UTC 2024 - 13.3K bytes - Viewed (0) -
src/encoding/base64/base64_test.go
} } } func TestDecodeBounds(t *testing.T) { var buf [32]byte s := StdEncoding.EncodeToString(buf[:]) defer func() { if err := recover(); err != nil { t.Fatalf("Decode panicked unexpectedly: %v\n%s", err, debug.Stack()) } }() n, err := StdEncoding.Decode(buf[:], []byte(s)) if n != len(buf) || err != nil { t.Fatalf("StdEncoding.Decode = %d, %v, want %d, nil", n, err, len(buf)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Sep 03 18:57:29 UTC 2023 - 15.9K bytes - Viewed (0) -
src/net/listen_test.go
testenv.MustHaveExternalNetwork(t) switch runtime.GOOS { case "plan9": t.Skipf("not supported on %s", runtime.GOOS) } defer func() { if p := recover(); p != nil { t.Fatalf("panicked: %v", p) } }() if ln, err := Listen("tcp", ""); err == nil { ln.Close() } if ln, err := ListenPacket("udp", ""); err == nil { ln.Close() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 20.5K bytes - Viewed (0)