- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 892 for panics (0.13 sec)
-
src/internal/trace/event.go
m.Value = Value{kind: ValueUint64, scalar: e.base.args[0]} default: panic(fmt.Sprintf("internal error: unexpected event type for Metric kind: %s", go122.EventString(e.base.typ))) } return m } // Label returns details about a Label event. // // Panics if Kind != EventLabel. func (e Event) Label() Label { if e.Kind() != EventLabel { panic("Label called on non-Label event") } if e.base.typ != go122.EvGoLabel {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 12:39:00 UTC 2024 - 28.9K bytes - Viewed (0) -
src/flag/flag_test.go
-ZP0 value a flag whose String method panics when it is zero -ZP1 value a flag whose String method panics when it is zero -maxT timeout set timeout for dial panic calling String method on zero flag_test.zeroPanicker for flag ZP0: panic! panic calling String method on zero flag_test.zeroPanicker for flag ZP1: panic! ` func TestPrintDefaults(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:38:24 UTC 2024 - 22K bytes - Viewed (0) -
src/slices/slices.go
// The result is never nil. // Repeat panics if count is negative or if the result of (len(x) * count) // overflows. func Repeat[S ~[]E, E any](x S, count int) S { if count < 0 { panic("cannot be negative") } const maxInt = ^uint(0) >> 1 if hi, lo := bits.Mul(uint(len(x)), uint(count)); hi > 0 || lo > maxInt { panic("the result of (len(x) * count) overflows") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 29 14:01:59 UTC 2024 - 13.6K bytes - Viewed (0) -
test/recover.go
defer func() { mustNotRecover() }() panic(1) } func test2() { // Recover only sees the panic argument // if it is called from a deferred call. // It does not see the panic when called from a call within a deferred call (too late) // nor does it see the panic when it *is* the deferred call (too early). defer mustRecover(2) defer recover() // should be no-op panic(2) } func test3() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 10.6K bytes - Viewed (0) -
src/math/bits/bits.go
// y == 0 (division by zero) but, unlike Div, it doesn't panic on a // quotient overflow. func Rem(hi, lo, y uint) uint { if UintSize == 32 { return uint(Rem32(uint32(hi), uint32(lo), uint32(y))) } return uint(Rem64(uint64(hi), uint64(lo), uint64(y))) } // Rem32 returns the remainder of (hi, lo) divided by y. Rem32 panics
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 17.9K bytes - Viewed (0) -
pkg/apis/rbac/helpers.go
r.PolicyRule.NonResourceURLs = combine(r.PolicyRule.NonResourceURLs, urls) return r } // RuleOrDie calls the binding method and panics if there is an error. func (r *PolicyRuleBuilder) RuleOrDie() PolicyRule { ret, err := r.Rule() if err != nil { panic(err) } return ret } func combine(s1, s2 []string) []string { s := sets.NewString(s1...) s.Insert(s2...) return s.List() }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Feb 23 15:11:00 UTC 2020 - 12.1K bytes - Viewed (0) -
src/runtime/panic.go
// This is used to try hard to get a panic stack trace out when exiting. var runningPanicDefers atomic.Uint32 // panicking is non-zero when crashing the program for an unrecovered panic. var panicking atomic.Uint32 // paniclk is held while printing the panic information and stack trace, // so that two concurrent panics don't overlap their output. var paniclk mutex
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 43.8K bytes - Viewed (0) -
src/math/big/rat.go
f, exact = quotToFloat64(x.a.abs, b) if x.a.neg { f = -f } return } // SetFrac sets z to a/b and returns z. // If b == 0, SetFrac panics. func (z *Rat) SetFrac(a, b *Int) *Rat { z.a.neg = a.neg != b.neg babs := b.abs if len(babs) == 0 { panic("division by zero") } if &z.a == b || alias(z.a.abs, babs) { babs = nat(nil).set(babs) // make a copy } z.a.abs = z.a.abs.set(a.abs)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 13.5K bytes - Viewed (0) -
cluster/images/etcd/migrate/integration_test.go
// or panics if the parse fails. func mustParseEtcdVersionPair(s string) *EtcdVersionPair { pair, err := ParseEtcdVersionPair(s) if err != nil { panic(err) } return pair } // mustParseSupportedVersions parses a comma separated list of etcd versions or panics if the parse fails. func mustParseSupportedVersions(list []string) SupportedVersions {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 28 07:33:23 UTC 2022 - 11.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime.go
fn(ctx, r) } if ReallyCrash { // Actually proceed to panic. panic(r) } } // logPanic logs the caller tree when a panic occurs (except in the special case of http.ErrAbortHandler). func logPanic(ctx context.Context, r interface{}) { if r == http.ErrAbortHandler { // honor the http.ErrAbortHandler sentinel panic value: // ErrAbortHandler is a sentinel panic value to abort a handler.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 9.9K bytes - Viewed (0)