- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 1,675 for mypanic (0.09 sec)
-
test/map.go
} // test len if len(mib) != count { panic(fmt.Sprintf("len(mib) = %d\n", len(mib))) } if len(mii) != count { panic(fmt.Sprintf("len(mii) = %d\n", len(mii))) } if len(mfi) != count { panic(fmt.Sprintf("len(mfi) = %d\n", len(mfi))) } if len(mif) != count { panic(fmt.Sprintf("len(mif) = %d\n", len(mif))) } if len(msi) != count { panic(fmt.Sprintf("len(msi) = %d\n", len(msi))) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 06 21:02:55 UTC 2014 - 14.9K bytes - Viewed (0) -
test/method.go
panic("fail") } if I.val(i) != 3 { println("I.val(i):", I.val(i)) panic("fail") } if (*I).val(&i) != 3 { println("(*I).val(&i):", (*I).val(&i)) panic("fail") } if pi.val() != 4 { println("pi.val:", pi.val()) panic("fail") } if (*I1).val(pi) != 4 { println("(*I1).val(pi):", (*I1).val(pi)) panic("fail") } if t.val() != 7 { println("t.val:", t.val()) panic("fail") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 11 23:20:52 UTC 2013 - 5.2K bytes - Viewed (0) -
test/recover1.go
defer mustNotRecover() defer func() { recover() defer mustRecover(3) panic(3) }() panic(2) } func test4() { // Single panic. defer mustNotRecover() defer func() { recover() }() panic(4) } func test5() { // Single panic but recover called via defer defer mustNotRecover() defer func() { defer recover() }() panic(5) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 2.5K bytes - Viewed (0) -
test/ken/simpbool.go
b = true; if !(a && b) { panic(21); } if a && !b { panic(22); } if !a && b { panic(23); } if !a && !b { panic(24); } a = false; b = true; if !(!a && b) { panic(31); } if !a && !b { panic(32); } if a && b { panic(33); } if a && !b { panic(34); } a = true; b = false; if !(a && !b) { panic(41); } if a && b { panic(41); } if !a && !b { panic(41); } if !a && b { panic(44); } a = false;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 05:24:24 UTC 2012 - 1.8K bytes - Viewed (0) -
src/runtime/panic_test.go
{"panicCustomInt16", `panic: main.MyInt16(93)`}, {"panicCustomInt32", `panic: main.MyInt32(93)`}, {"panicCustomInt64", `panic: main.MyInt64(93)`}, {"panicCustomString", `panic: main.MyString("Panic` + "\n\t" + `line two")`}, {"panicCustomUint", `panic: main.MyUint(93)`}, {"panicCustomUint8", `panic: main.MyUint8(93)`}, {"panicCustomUint16", `panic: main.MyUint16(93)`}, {"panicCustomUint32", `panic: main.MyUint32(93)`},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 19:10:41 UTC 2024 - 1.7K bytes - Viewed (0) -
src/runtime/testdata/testprog/panicprint.go
type MyUintptr uintptr func panicCustomComplex64() { panic(MyComplex64(0.11 + 3i)) } func panicCustomComplex128() { panic(MyComplex128(32.1 + 10i)) } func panicCustomString() { panic(MyString("Panic\nline two")) } func panicCustomBool() { panic(MyBool(true)) } func panicCustomInt() { panic(MyInt(93)) } func panicCustomInt8() { panic(MyInt8(93)) } func panicCustomInt16() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 19:10:41 UTC 2024 - 2.2K bytes - Viewed (0) -
test/range.go
panic("fail") } if s != 15 { println("wrong sum ranging over makearray", s) panic("fail") } } func testarray1() { s := 0 nmake = 0 for i := range makearray() { s += i } if nmake != 1 { println("range called makearray", nmake, "times") panic("fail") } if s != 10 { println("wrong sum ranging over makearray", s) panic("fail") } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 05:50:54 UTC 2017 - 8.1K bytes - Viewed (0) -
test/ken/divmod.go
println("ideal-1", n1, d1, n1/d1, n1%d1) panic("fail") } if n2/d1 != q2 || n2%d1 != r2 { println("ideal-2", n2, d1, n2/d1, n2%d1) panic("fail") } if n1/d2 != q3 || n1%d2 != r3 { println("ideal-3", n1, d2, n1/d2, n1%d2) panic("fail") } if n2/d2 != q4 || n2%d2 != r4 { println("ideal-4", n2, d2, n2/d2, n2%d2) panic("fail") } /* int */ var in1 int = +5 var in2 int = -5
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 05:24:24 UTC 2012 - 5.1K bytes - Viewed (0) -
test/initcomma.go
panic("fail") } if b[1] != 2 { println("b[1]", b[1]) panic("fail") } if b[2] != 3 { println("b[2]", b[2]) panic("fail") } if b[3] != 0 { println("b[3]", b[3]) panic("fail") } if b[4] != 0 { println("b[4]", b[4]) panic("fail") } if c[0] != 1 { println("c[0]", c[0]) panic("fail") } if d[0] != 1 { println("d[0]", d[0]) panic("fail") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Feb 19 20:44:24 UTC 2012 - 1.2K bytes - Viewed (0) -
src/crypto/internal/boring/notboring.go
func SHA1([]byte) [20]byte { panic("boringcrypto: not available") } func SHA224([]byte) [28]byte { panic("boringcrypto: not available") } func SHA256([]byte) [32]byte { panic("boringcrypto: not available") } func SHA384([]byte) [48]byte { panic("boringcrypto: not available") } func SHA512([]byte) [64]byte { panic("boringcrypto: not available") } func NewHMAC(h func() hash.Hash, key []byte) hash.Hash { panic("boringcrypto: not available") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 26 22:52:27 UTC 2024 - 4.9K bytes - Viewed (0)