- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 1,938 for panics (1.24 sec)
-
pkg/registry/core/serviceaccount/storage/storage_test.go
// Currently this getter only panics as the only test case doesn't actually need the getters to function. // When more test cases are added, this getter will need extending/replacing to have a real test implementation. type panicGetter struct{} func (f panicGetter) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error) { panic("not implemented") } var _ rest.Getter = panicGetter{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 6.7K bytes - Viewed (0) -
pkg/util/goroutinemap/goroutinemap.go
operationPending: true, expBackoff: existingOp.expBackoff, } go func() (err error) { // Handle unhandled panics (very unlikely) defer k8sRuntime.HandleCrash() // Handle completion of and error, if any, from operationFunc() defer grm.operationComplete(operationName, &err) // Handle panic, if any, from operationFunc() defer k8sRuntime.RecoverFromPanic(&err) return operationFunc() }() return nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 16 11:54:27 UTC 2020 - 6.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/environment/base.go
// strictCost is used to determine whether to enforce strict cost calculation for CEL expressions. func MustBaseEnvSet(ver *version.Version, strictCost bool) *EnvSet { if ver == nil { panic("version must be non-nil") } if len(ver.Components()) < 2 { panic(fmt.Sprintf("version must contain an major and minor component, but got: %s", ver.String())) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 15 15:51:08 UTC 2024 - 6.4K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/loadstore_test.go
// //go:noinline func testDeadStorePanic_ssa(a int) (r int) { defer func() { recover() r = a }() a = 2 // store b := a - a // optimized to zero c := 4 a = c / b // store, but panics a = 3 // store r = a return } func testDeadStorePanic(t *testing.T) { if want, got := 2, testDeadStorePanic_ssa(1); want != got { t.Errorf("testDeadStorePanic failed. want = %d, got = %d", want, got)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 05 17:54:15 UTC 2022 - 4.8K bytes - Viewed (0) -
src/runtime/signal_linux_s390x.go
func (c *sigctxt) preparePanic(sig uint32, gp *g) { // We arrange link, and pc to pretend the panicking // function calls sigpanic directly. // Always save LINK to stack so that panics in leaf // functions are correctly handled. This smashes // the stack frame but we're not going back there // anyway. sp := c.sp() - sys.MinFrameSize c.set_sp(sp) *(*uint64)(unsafe.Pointer(uintptr(sp))) = c.link()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 17 20:42:23 UTC 2021 - 4.5K bytes - Viewed (0) -
test/typeparam/chansimp.dir/a.go
case r := <-e.c: return r, true default: return v, false } } // Release updates and releases the value. // This method panics if the value has not been acquired. func (e *Exclusive[Val]) Release(v Val) { select { case e.c <- v: default: panic("Exclusive Release without Acquire") } } // Ranger returns a Sender and a Receiver. The Receiver provides a
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 28 21:40:40 UTC 2021 - 5.5K bytes - Viewed (0) -
src/crypto/crypto.go
// into the program. func (h Hash) Size() int { if h > 0 && h < maxHash { return int(digestSizes[h]) } panic("crypto: Size of unknown hash function") } var hashes = make([]func() hash.Hash, maxHash) // New returns a new hash.Hash calculating the given hash function. New panics // if the hash function is not linked into the binary. func (h Hash) New() hash.Hash { if h > 0 && h < maxHash {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:09:47 UTC 2023 - 6.8K bytes - Viewed (0) -
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/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)