- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testAssertI2TPanic (0.12 sec)
-
src/cmd/compile/internal/test/testdata/assert_test.go
}() got = e2t_ssa(s) t.Errorf("e2t_ssa(s) should panic") } func testAssertI2TOk(t *testing.T) { if got := i2t_ssa(u); got != u { t.Errorf("i2t_ssa(u)=%v want %v", got, u) } } func testAssertI2TPanic(t *testing.T) { var got *U defer func() { if got != nil { t.Errorf("i2t_ssa(s)=%v want nil", got) } e := recover() err, ok := e.(*runtime.TypeAssertionError) if !ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 23 06:40:04 UTC 2020 - 2.5K bytes - Viewed (0)