- Sort Score
- Result 10 results
- Languages All
Results 171 - 180 of 3,023 for panics (0.12 sec)
-
pkg/config/schema/collection/schemas.go
} b.schemas.byCollection[s.GroupVersionKind()] = s b.schemas.byAddOrder = append(b.schemas.byAddOrder, s) return nil } // MustAdd calls Add and panics if it fails. func (b *SchemasBuilder) MustAdd(s resource.Schema) *SchemasBuilder { if err := b.Add(s); err != nil { panic(fmt.Sprintf("SchemasBuilder.MustAdd: %v", err)) } return b } // Build a new schemas from this SchemasBuilder.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Aug 01 08:10:15 UTC 2023 - 6K bytes - Viewed (0) -
src/runtime/cgocall.go
return } if !top && !isPinned(p) { panic(errorString(msg)) } cgoCheckUnknownPointer(p, msg) } } // cgoCheckUnknownPointer is called for an arbitrary pointer into Go // memory. It checks whether that Go memory contains any other // pointer into unpinned Go memory. If it does, we panic. // The return values are unused but useful to see in panic tracebacks.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:47 UTC 2024 - 24.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/typeparams/coretype.go
// MustDeref returns the type of the variable pointed to by t. // It panics if t's core type is not a pointer. // // TODO(adonovan): ideally this would live in typesinternal, but that // creates an import cycle. Move there when we melt this package down. func MustDeref(t types.Type) types.Type { if ptr, ok := CoreType(t).(*types.Pointer); ok { return ptr.Elem() } panic(fmt.Sprintf("%v is not a pointer", t))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 5.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/finisher/finisher_test.go
}, { name: "Panic is propagated up", timeout: timeoutFunc, fn: func() (runtime.Object, error) { panic("my panic") }, expectedObj: nil, expectedErr: nil, expectedPanic: "my panic", }, { name: "Panic is propagated with stack", timeout: timeoutFunc, fn: func() (runtime.Object, error) { panic("my panic") }, expectedObj: nil,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 07 14:20:33 UTC 2021 - 8.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/modfile/read.go
} } // parse parses the input file. func parse(file string, data []byte) (f *FileSyntax, err error) { // The parser panics for both routine errors like syntax errors // and for programmer bugs like array index errors. // Turn both into error returns. Catching bug panics is // especially important when processing many files. in := newInput(file, data) defer func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 23.1K bytes - Viewed (0) -
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/cmd/vendor/golang.org/x/mod/sumdb/tlog/tile.go
} // TileForIndex returns the tile of fixed height h ≥ 1 // and least width storing the given hash storage index. // // If h ≤ 0, [TileForIndex] panics. func TileForIndex(h int, index int64) Tile { if h <= 0 { panic(fmt.Sprintf("TileForIndex: invalid height %d", h)) } t, _, _ := tileForIndex(h, index) return t } // tileForIndex returns the tile of height h ≥ 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13K bytes - Viewed (0)