- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 1,056 for mypanic (0.21 sec)
-
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) -
test/ken/interfun.go
// call structure if s.f() != 5 { panic(11); } if s.g() != 6 { panic(12); } i1 = s; // convert S to I1 i2 = i1.(I2); // convert I1 to I2 // call interface if i1.f() != 5 { panic(21); } if i2.f() != 5 { panic(22); } if i2.g() != 6 { panic(23); } g = i1.(*S); // convert I1 to S if g != s { panic(31); } g = i2.(*S); // convert I2 to S if g != s { panic(32); }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 05:24:24 UTC 2012 - 872 bytes - Viewed (0) -
test/typeparam/valimp.dir/main.go
a.Set(&v1, 1) if got, want := a.Get(&v1), 1; got != want { panic(fmt.Sprintf("Get() == %d, want %d", got, want)) } v1.Set(2) if got, want := v1.Get(), 2; got != want { panic(fmt.Sprintf("Get() == %d, want %d", got, want)) } v1p := new(a.Value[int]) a.Set(v1p, 3) if got, want := a.Get(v1p), 3; got != want { panic(fmt.Sprintf("Get() == %d, want %d", got, want)) } v1p.Set(4)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 1.3K bytes - Viewed (0)