- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 1,675 for mypanic (0.11 sec)
-
test/armimm.go
panic(fmt.Sprintf("add32a(%x) = %x, want %x", a, got, want)) } if want, got = a+c32s, add32s(a); got != want { panic(fmt.Sprintf("add32s(%x) = %x, want %x", a, got, want)) } if want, got = a-c32a, sub32a(a); got != want { panic(fmt.Sprintf("sub32a(%x) = %x, want %x", a, got, want)) } if want, got = a-c32s, sub32s(a); got != want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 11 13:53:54 UTC 2017 - 3.9K bytes - Viewed (0) -
test/typeparam/sliceimp.dir/main.go
panic(fmt.Sprintf("a.Equal(%v, %v) = false, want true", s3, s3)) } if a.Equal(s1, nil) { panic(fmt.Sprintf("a.Equal(%v, nil) = true, want false", s1)) } if a.Equal(nil, s1) { panic(fmt.Sprintf("a.Equal(nil, %v) = true, want false", s1)) } if !a.Equal(s1[:0], nil) { panic(fmt.Sprintf("a.Equal(%v, nil = false, want true", s1[:0])) } } func offByOne[Elem Integer](a, b Elem) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 4.6K bytes - Viewed (0) -
test/convert4.go
defer func() { err := recover() if err == nil { panic("expected panic") } if got := err.(error).Error(); got != s { panic("expected panic " + s + " got " + got) } }() fn() } func main() { s := make([]byte, 8, 10) for i := range s { s[i] = byte(i) } if p := (*[8]byte)(s); &p[0] != &s[0] { panic("*[8]byte conversion failed") } if [8]byte(s) != *(*[8]byte)(s) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 19 18:58:26 UTC 2022 - 2.1K bytes - Viewed (0) -
test/chan/nonblock.go
cs := make(chan string, buffer) select { case i32 = <-c32: panic("blocked i32sender") default: } select { case i64 = <-c64: panic("blocked i64sender") default: } select { case b = <-cb: panic("blocked bsender") default: } select { case s = <-cs: panic("blocked ssender") default: } go i32receiver(c32, sync)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Feb 19 06:44:02 UTC 2012 - 3.9K bytes - Viewed (0) -
test/complit.go
a1 := []int{1, 2, 3} if len(a1) != 3 { panic("a1") } a2 := [10]int{1, 2, 3} if len(a2) != 10 || cap(a2) != 10 { panic("a2") } a3 := [10]int{1, 2, 3} if len(a3) != 10 || a2[3] != 0 { panic("a3") } var oai []int oai = []int{1, 2, 3} if len(oai) != 3 { panic("oai") } at := [...]*T{&t, tp, &t} if len(at) != 3 { panic("at") } c := make(chan int)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Feb 19 02:19:43 UTC 2012 - 1.7K bytes - Viewed (0) -
src/testing/panic_test.go
{ desc: "Issue 48502: call runtime.Goexit in t.Cleanup after panic", flags: []string{"-test.run=^TestGoexitInCleanupAfterPanicHelper$"}, want: `panic: die panic: test executed panic(nil) or runtime.Goexit`, }, { desc: "Issue 48515: call t.Run in t.Cleanup should trigger panic", flags: []string{"-test.run=^TestCallRunInCleanupHelper$"}, want: `panic: testing: t.Run called during t.Cleanup`, }, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 27 16:49:24 UTC 2023 - 7.4K bytes - Viewed (0) -
test/typeparam/slices.go
if !_Equal(s3, s3) { panic(fmt.Sprintf("_Equal(%v, %v) = false, want true", s3, s3)) } if _Equal(s1, nil) { panic(fmt.Sprintf("_Equal(%v, nil) = true, want false", s1)) } if _Equal(nil, s1) { panic(fmt.Sprintf("_Equal(nil, %v) = true, want false", s1)) } if !_Equal(s1[:0], nil) { panic(fmt.Sprintf("_Equal(%v, nil = false, want true", s1[:0])) } } func offByOne[Elem Integer](a, b Elem) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 7.8K bytes - Viewed (0) -
test/fixedbugs/issue8158.go
runtime.Goexit() // left stack-allocated Panic struct on gp->panic stack }() panic("p") } func f2(done chan bool) { defer func() { recover() done <- true runtime.Goexit() }() time.Sleep(10 * time.Millisecond) // overwrote Panic struct with Timer struct runtime.GC() // walked gp->panic list, found mangled Panic struct, crashed panic("p")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 767 bytes - Viewed (0) -
test/fixedbugs/issue29919.dir/a.go
if debug { println(s) } if strings.Contains(s, "autogenerated") { panic("autogenerated code in traceback") } if !strings.Contains(s, "a.go:15") { panic("missing a.go:15") } if !strings.Contains(s, "a.go:19") { panic("missing a.go:19") } if !strings.Contains(s, "a.init") { panic("missing a.init") } // Check the CallersFrames results. if debug {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 17:50:47 UTC 2022 - 1.6K bytes - Viewed (0) -
src/vendor/golang.org/x/sys/cpu/cpu_gccgo_s390x.go
func stfle() facilityList { panic("not implemented for gccgo") } func kmQuery() queryResult { panic("not implemented for gccgo") } func kmcQuery() queryResult { panic("not implemented for gccgo") } func kmctrQuery() queryResult { panic("not implemented for gccgo") } func kmaQuery() queryResult { panic("not implemented for gccgo") } func kimdQuery() queryResult { panic("not implemented for gccgo") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 1K bytes - Viewed (0)