- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 1,938 for panics (1.03 sec)
-
pkg/apis/rbac/v1/helpers.go
} return r } // BindingOrDie calls the binding method and panics if there is an error. func (r *RoleBindingBuilder) BindingOrDie() rbacv1.RoleBinding { ret, err := r.Binding() if err != nil { panic(err) } return ret } // Binding builds and returns the RoleBinding API object from the builder // object.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 18 15:37:57 UTC 2023 - 7.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/selection.go
// f requires a non-pointer receiver but x.a.b.c is a pointer value. // // All pointer indirections, whether due to implicit or explicit field // selections or * operations inserted for "pointerness", panic if // applied to a nil pointer, so a method call x.f() may panic even // before the function call. // // By contrast, a MethodExpr operation T.f is essentially equivalent // to a function literal of the form: //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 5.8K bytes - Viewed (0) -
src/go/types/selection.go
// f requires a non-pointer receiver but x.a.b.c is a pointer value. // // All pointer indirections, whether due to implicit or explicit field // selections or * operations inserted for "pointerness", panic if // applied to a nil pointer, so a method call x.f() may panic even // before the function call. // // By contrast, a MethodExpr operation T.f is essentially equivalent // to a function literal of the form: //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 5.9K bytes - Viewed (0) -
src/sync/oncefunc_test.go
calls++ panic("x") }) testOncePanicX(t, &calls, func() { f() }) } func TestOnceValuesPanic(t *testing.T) { calls := 0 f := sync.OnceValues(func() (int, int) { calls++ panic("x") }) testOncePanicX(t, &calls, func() { f() }) } func TestOnceFuncPanicNil(t *testing.T) { calls := 0 f := sync.OnceFunc(func() { calls++ panic(nil) })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 17:31:33 UTC 2023 - 6.9K bytes - Viewed (0) -
src/text/template/helper.go
// Must is a helper that wraps a call to a function returning ([*Template], error) // and panics if the error is non-nil. It is intended for use in variable // initializations such as // // var t = template.Must(template.New("name").Parse("text")) func Must(t *Template, err error) *Template { if err != nil { panic(err) } return t } // ParseFiles creates a new [Template] and parses the template definitions from
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:54:08 UTC 2024 - 6.4K bytes - Viewed (0) -
pkg/proxy/conntrack/conntrack_test.go
} return &testCT{execCT{fexec}, fcmd} } // Gets the command that ct executed. (If it didn't execute any commands, this will // return "".) func (ct *testCT) getExecutedCommand() string { // FakeExec panics if you try to run more commands than you set it up for. So the // only possibilities here are that we ran 1 command or we ran 0. if ct.execer.(*fakeexec.FakeExec).CommandCalls != 1 { return "" }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 15 18:08:36 UTC 2024 - 6.7K bytes - Viewed (0) -
pkg/kubelet/server/stats/volume_stat_calculator.go
if _, ok := v.(volume.MetricsProvider); ok { // Some drivers inherit the MetricsProvider interface from Filesystem // mode volumes, but do not implement it for Block mode. Checking // SupportsMetrics() will prevent panics in that case. if v.SupportsMetrics() { metricVolumes[name] = v } } } } // Get volume specs for the pod - key'd by volume name volumesSpec := make(map[string]v1.Volume)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 29 00:55:10 UTC 2022 - 7.1K bytes - Viewed (0) -
test/index.go
var pt = &T{si, ai, pai, sq, aq, paq, sib, aib, paib, sqb, aqb, paqb} // test that f panics func test(f func(), s string) { defer func() { if err := recover(); err == nil { _, file, line, _ := runtime.Caller(2) bug() print(file, ":", line, ": ", s, " did not panic\n") } else if !contains(err.(error).Error(), "out of range") { _, file, line, _ := runtime.Caller(2) bug()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Sep 08 17:28:20 UTC 2019 - 6.4K bytes - Viewed (0) -
src/cmd/internal/gcprog/gcprog.go
// The caller asserts that the program emits n bits (describes n words), // and Append panics if that is not true. func (w *Writer) Append(prog []byte, n int64) { w.flushlit() if w.debug != nil { fmt.Fprintf(w.debug, "gcprog: append prog for %d ptrs\n", n) fmt.Fprintf(w.debug, "\t") } n1 := progbits(prog) if n1 != n { panic("gcprog: wrong bit count in append") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 7.4K bytes - Viewed (0) -
cmd/bitrot.go
func (a BitrotAlgorithm) Available() bool { _, ok := bitrotAlgorithms[a] return ok } // String returns the string identifier for a given bitrot algorithm. // If the algorithm is not supported String panics. func (a BitrotAlgorithm) String() string { name, ok := bitrotAlgorithms[a] if !ok { logger.CriticalIf(GlobalContext, errors.New("Unsupported bitrot algorithm")) } return name }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jan 30 20:43:25 UTC 2024 - 7.6K bytes - Viewed (0)