- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 60 for panicIP (0.14 sec)
-
src/net/netip/netip_test.go
) func TestNoAllocs(t *testing.T) { // Wrappers that panic on error, to prove that our alloc-free // methods are returning successfully. panicIP := func(ip Addr, err error) Addr { if err != nil { panic(err) } return ip } panicPfx := func(pfx Prefix, err error) Prefix { if err != nil { panic(err) } return pfx }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 17:10:01 UTC 2024 - 54.3K 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) -
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/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/compile/internal/ssa/rewrite.go
} func newPPC64ShiftAuxInt(sh, mb, me, sz int64) int32 { if sh < 0 || sh >= sz { panic("PPC64 shift arg sh out of range") } if mb < 0 || mb >= sz { panic("PPC64 shift arg mb out of range") } if me < 0 || me >= sz { panic("PPC64 shift arg me out of range") } return int32(sh<<16 | mb<<8 | me) } func GetPPC64Shiftsh(auxint int64) int64 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 19:02:52 UTC 2024 - 64.2K bytes - Viewed (0) -
src/crypto/tls/handshake_client_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 88.7K bytes - Viewed (0) -
src/cmd/go/internal/modload/buildlist.go
if workFilePath != "" { panic("in workspace mode, but pruning is not workspace in newRequirements") } } if pruning != workspace { if workFilePath != "" { panic("in workspace mode, but pruning is not workspace in newRequirements") } for i, m := range rootModules { if m.Version == "" && MainModules.Contains(m.Path) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 16:04:44 UTC 2024 - 53.8K bytes - Viewed (0)