- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 3,023 for panics (0.25 sec)
-
src/internal/trace/value.go
// to that possibility. func (v Value) Kind() ValueKind { return v.kind } // Uint64 returns the uint64 value for a MetricSampleUint64. // // Panics if this metric sample's Kind is not MetricSampleUint64. func (v Value) Uint64() uint64 { if v.kind != ValueUint64 { panic("Uint64 called on Value of a different Kind") } return v.scalar } // valueAsString produces a debug string value. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1.2K bytes - Viewed (0) -
pkg/test/util/tmpl/parse.go
t.Helper() tpl2, err := Parse(tpl) if err != nil { t.Fatalf("tmpl.ParseOrFail: %v", err) } return tpl2 } // MustParse calls Parse and panics if it returns error. func MustParse(tpl string) *template.Template { tpl2, err := Parse(tpl) if err != nil { panic(fmt.Sprintf("tmpl.MustParse: %v", err)) } return tpl2
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jul 01 05:55:48 UTC 2022 - 1.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/conversion/deep_equal.go
// go std lib. But for convenience, we expose the type here, too. type Equalities struct { reflect.Equalities } // For convenience, panics on errors func EqualitiesOrDie(funcs ...interface{}) Equalities { e := Equalities{reflect.Equalities{}} if err := e.AddFuncs(funcs...); err != nil { panic(err) } return e } // Performs a shallow copy of the equalities map func (e Equalities) Copy() Equalities {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 14 18:55:26 UTC 2022 - 1.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/timeout_test.go
t.Errorf("got Write error of %v; expected %v", err, http.ErrHandlerTimeout) } // Panics doPanic <- "inner handler panics" res, err = http.Get(ts.URL) if err != nil { t.Fatal(err) } if res.StatusCode != http.StatusInternalServerError { t.Errorf("got res.StatusCode %d; expected %d due to panic", res.StatusCode, http.StatusInternalServerError) } select { case err := <-gotPanic:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 18.4K bytes - Viewed (0) -
src/runtime/panic_test.go
{"panicCustomFloat32", `panic: main.MyFloat32(-9.370000e+001)`}, {"panicCustomFloat64", `panic: main.MyFloat64(-9.370000e+001)`}, {"panicCustomInt", `panic: main.MyInt(93)`}, {"panicCustomInt8", `panic: main.MyInt8(93)`}, {"panicCustomInt16", `panic: main.MyInt16(93)`}, {"panicCustomInt32", `panic: main.MyInt32(93)`}, {"panicCustomInt64", `panic: main.MyInt64(93)`},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 19:10:41 UTC 2024 - 1.7K bytes - Viewed (0) -
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) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testing/service_resolver.go
panicMessage string } // NewPanickingServiceResolver returns a static service resolver that panics. func NewPanickingServiceResolver(panicMessage string) webhook.ServiceResolver { return &panickingResolver{panicMessage} } func (f panickingResolver) ResolveEndpoint(namespace, name string, port int32) (*url.URL, error) { panic(f.panicMessage)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 18 18:49:55 UTC 2022 - 1.5K bytes - Viewed (0) -
src/runtime/testdata/testprog/deadlock.go
}() panic("second panic") }() panic("first panic") } // Test case where a single defer recovers one panic but starts another panic. If // the second panic is never recovered, then the recovered first panic will still // appear on the panic stack (labeled '[recovered]') and the runtime stack. func RecursivePanic4() { defer func() { recover() panic("second panic") }() panic("first panic") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 27 20:44:24 UTC 2021 - 6.5K bytes - Viewed (0) -
src/runtime/race/testdata/atomic_test.go
// the rest of the program. Used to hang indefinitely. func TestNoRaceAtomicCrash(t *testing.T) { var mutex sync.Mutex var nilptr *int32 panics := 0 defer func() { if x := recover(); x != nil { mutex.Lock() panics++ mutex.Unlock() } else { panic("no panic") } }() atomic.AddInt32(nilptr, 1) } func TestNoRaceDeferAtomicStore(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 16 17:26:46 UTC 2020 - 4.9K bytes - Viewed (0) -
cluster/images/etcd/migrate/versions.go
} } // MustParseEtcdStorageVersion parses an etcd storage version string to an EtcdStorageVersion and // panics if the parse fails. func MustParseEtcdStorageVersion(s string) EtcdStorageVersion { version, err := ParseEtcdStorageVersion(s) if err != nil { panic(err) } return version } // String returns the text representation of the EtcdStorageVersion, 'etcd2' or 'etcd3'.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 28 07:33:23 UTC 2022 - 5.3K bytes - Viewed (0)