- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 1,056 for mypanic (0.1 sec)
-
test/typeparam/issue47716.go
func main() { v1 := int(5) if got, want := size(v1), unsafe.Sizeof(v1); got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) } if got, want := align(v1), unsafe.Alignof(v1); got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) } v2 := "abc" if got, want := size(v2), unsafe.Sizeof(v2); got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 1.6K bytes - Viewed (0) -
test/typeparam/orderedmapsimp.dir/main.go
panic(fmt.Sprintf("did not find %q", []byte("a"))) } else if v != 'a' { panic(fmt.Sprintf("key %q returned wrong value %c, expected %c", []byte("a"), v, 'a')) } if v, found := m.Find([]byte("c")); !found { panic(fmt.Sprintf("did not find %q", []byte("c"))) } else if v != 'x' { panic(fmt.Sprintf("key %q returned wrong value %c, expected %c", []byte("c"), v, 'x')) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 1.5K bytes - Viewed (0) -
test/chancap.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 26 14:06:28 UTC 2018 - 1.6K bytes - Viewed (0) -
test/fixedbugs/bug236.go
func main() { gen = 'a' if v1 != "aAbB" { panic("BUG: bug236a") } if v2 != "cCdD" { panic("BUG: bug236b") } if v3 != "eEfFgGhHiI" { panic("BUG: bug236c") } switch "aAbB" { case f(1) + f(2): default: panic("BUG: bug236d") } switch "cCdD" { case g(f(3), f(4)): default: panic("BUG: bug236e") } switch "eEfFgGhHiI" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 831 bytes - Viewed (0) -
pkg/test/framework/components/echo/match/matchers_test.go
panic("implement me") } func (f fakeInstance) Clusters() cluster.Clusters { panic("implement me") } func (f fakeInstance) Call(echo.CallOptions) (echo.CallResult, error) { panic("implement me") } func (f fakeInstance) CallOrFail(test.Failer, echo.CallOptions) echo.CallResult { panic("implement me") } func (f fakeInstance) UpdateWorkloadLabel(add map[string]string, remove []string) error {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 5.2K bytes - Viewed (0) -
test/fixedbugs/bug242.go
println("e1: got", i, "expected", expected) panic("fail") } i++ return c } type Empty interface{} type I interface { Get() byte } type S1 struct { i byte } func (p S1) Get() byte { return p.i } type S2 struct { i byte } func e2(p Empty, expected byte) Empty { if i != expected { println("e2: got", i, "expected", expected) panic("fail") } i++ return p }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 18 21:15:42 UTC 2012 - 2.1K bytes - Viewed (0) -
test/fixedbugs/issue14725.go
recover() x = 1 }() panic(nil) } } var sink *int func f2() (x int) { sink = &x defer func() { recover() x = 1 }() panic(nil) } func f3(b bool) (x int) { sink = &x defer func() { recover() x = 1 }() if b { panic(nil) } return } func main() { if x := f1(); x != 1 { panic(fmt.Sprintf("f1 returned %d, wanted 1", x)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 856 bytes - Viewed (0) -
test/fixedbugs/issue27201.go
f(nil) } func f(p *int32) { defer checkstack() v := *p // panic should happen here, line 20 sink = int64(v) // not here, line 21 } var sink int64 func checkstack() { _ = recover() var buf [1024]byte n := runtime.Stack(buf[:], false) s := string(buf[:n]) if strings.Contains(s, "issue27201.go:21 ") { panic("panic at wrong location") } if !strings.Contains(s, "issue27201.go:20 ") {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 14 22:41:33 UTC 2019 - 681 bytes - Viewed (0) -
test/fixedbugs/issue43942.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 16 01:54:23 UTC 2022 - 726 bytes - Viewed (0) -
test/range4.go
println("wrong final i ranging over f:", i) bad = true } if bad { panic("testfunc3") } } func func5() (int, int) { for i := range yield4 { return 10, i } panic("still here") } func testfunc5() { x, y := func5() if x != 10 || y != 1 { println("wrong results", x, y, "want", 10, 1) panic("testfunc5") } } func func6() (z, w int) { for i := range yield4 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 08 16:00:53 UTC 2024 - 5.1K bytes - Viewed (0)