- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 112 for panic2 (0.25 sec)
-
src/fmt/fmt_test.go
} } } // PanicS is a type that panics in String. type PanicS struct { message any } // Value receiver. func (p PanicS) String() string { panic(p.message) } // PanicGo is a type that panics in GoString. type PanicGo struct { message any } // Value receiver. func (p PanicGo) GoString() string { panic(p.message) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:31:55 UTC 2024 - 58.6K bytes - Viewed (0) -
src/reflect/type.go
// t.IsVariadic() == true // // IsVariadic panics if the type's Kind is not Func. IsVariadic() bool // Elem returns a type's element type. // It panics if the type's Kind is not Array, Chan, Map, Pointer, or Slice. Elem() Type // Field returns a struct type's i'th field. // It panics if the type's Kind is not Struct. // It panics if i is not in the range [0, NumField()). Field(i int) StructField
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 85.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness_test.go
if f.inflight < f.capacity { f.inflight++ canExecute = true } }() if !canExecute { return } if f.preExecutePanic { panic("pre-exec-panic") } execFn() if f.postExecutePanic { panic("post-exec-panic") } f.lock.Lock() defer f.lock.Unlock() f.inflight-- } func (f *fakeWatchApfFilter) Run(stopCh <-chan struct{}) error { return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:40 UTC 2023 - 52.6K bytes - Viewed (0) -
src/text/template/exec_test.go
}{ { "direct func call panics", "{{doPanic}}", (*T)(nil), `template: t:1:2: executing "t" at <doPanic>: error calling doPanic: custom panic string`, }, { "indirect func call panics", "{{call doPanic}}", (*T)(nil), `template: t:1:7: executing "t" at <doPanic>: error calling doPanic: custom panic string`, }, { "direct method call panics", "{{.GetU}}", (*T)(nil),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 22:23:55 UTC 2024 - 60.1K bytes - Viewed (0) -
src/html/template/exec_test.go
}{ { "direct func call panics", "{{doPanic}}", (*T)(nil), `template: t:1:2: executing "t" at <doPanic>: error calling doPanic: custom panic string`, }, { "indirect func call panics", "{{call doPanic}}", (*T)(nil), `template: t:1:7: executing "t" at <doPanic>: error calling doPanic: custom panic string`, }, { "direct method call panics", "{{.GetU}}", (*T)(nil),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 24 21:59:12 UTC 2024 - 57.6K bytes - Viewed (0) -
src/testing/testing.go
didPanic := false defer func() { // Only report that the test is complete if it doesn't panic, // as otherwise the test binary can exit before the panic is // reported to the user. See issue 41479. if didPanic { return } if err != nil { panic(err) } running.Delete(t.name) t.signal <- signal }() doPanic := func(err any) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 76.1K bytes - Viewed (0) -
src/runtime/traceback.go
func (u *unwinder) finishInternal() { u.frame.pc = 0 // Note that panic != nil is okay here: there can be leftover panics, // because the defers on the panic stack do not nest in frame order as // they do on the defer stack. If you have: // // frame 1 defers d1 // frame 2 defers d2 // frame 3 defers d3 // frame 4 panics // frame 4's panic starts running defers // frame 5, running d3, defers d4 // frame 5 panics
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 55.1K bytes - Viewed (0) -
src/cmd/link/internal/loader/loader.go
panic("unexpected empty container symbol") } // The interior symbols for a container are not expected to have // content/data or relocations. if len(l.Data(interior)) != 0 { panic("unexpected non-empty interior symbol") } // Interior symbol is expected to be in the symbol table. if l.AttrNotInSymbolTable(interior) { panic("interior symbol must be in symtab") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 20:26:10 UTC 2024 - 81.5K bytes - Viewed (0) -
src/math/big/int_test.go
t.Helper() got := new(Int).SetBytes(buf) if got.CmpAbs(want) != 0 { t.Errorf("got 0x%x, want 0x%x: %x", got, want, buf) } } panics := func(f func()) (panic bool) { defer func() { panic = recover() != nil }() f() return } for _, n := range []string{ "0", "1000", "0xffffffff", "-0xffffffff", "0xffffffffffffffff",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 58.5K bytes - Viewed (0) -
src/cmd/internal/obj/riscv/obj.go
prologue.From = obj.Addr{Type: obj.TYPE_REG, Reg: REG_LR} prologue.To = obj.Addr{Type: obj.TYPE_MEM, Reg: REG_SP, Offset: 0} } if cursym.Func().Text.From.Sym.Wrapper() { // if(g->panic != nil && g->panic->argp == FP) g->panic->argp = bottom-of-frame // // MOV g_panic(g), X5 // BNE X5, ZERO, adjust // end: // NOP // ...rest of function.. // adjust: // MOV panic_argp(X5), X6
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 07 03:32:27 UTC 2024 - 77K bytes - Viewed (0)