- Sort Score
- Result 10 results
- Languages All
Results 171 - 180 of 1,675 for mypanic (0.19 sec)
-
src/cmd/cgo/internal/testplugin/testdata/issue18584/main.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 424 bytes - Viewed (0) -
src/cmd/go/testdata/script/vendor_issue12156.txt
# Tests issue #12156, a former index out of range panic. env GO111MODULE=off env GOPATH=$WORK/gopath/src/testvendor2 # vendor/x is directly in $GOPATH, not in $GOPATH/src cd $WORK/gopath/src/testvendor2/src/p ! go build p.go ! stderr panic # Make sure it doesn't panic stderr 'cannot find package "x"' -- testvendor2/src/p/p.go -- package p import "x" -- testvendor2/vendor/x/x.go --
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 17 13:25:29 UTC 2020 - 398 bytes - Viewed (0) -
test/typeswitch1.go
case nil: return fmt.Sprint("nil ", xx) } panic("not reached") } func check(x interface{}, s string) { w := whatis(x) if w != s { fmt.Println("whatis", x, "=>", w, "!=", s) panic("fail") } w = whatis1(x) if w != s { fmt.Println("whatis1", x, "=>", w, "!=", s) panic("fail") } } func main() { check(1, "signed 1") check(uint(1), "unsigned 1")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 00:48:19 UTC 2012 - 1.6K bytes - Viewed (0) -
src/cmd/internal/obj/arm64/obj7.go
q1.From.Offset = 8 q1.Reg = REGSP q1.To.Type = obj.TYPE_REG q1.To.Reg = REGFP if c.cursym.Func().Text.From.Sym.Wrapper() { // if(g->panic != nil && g->panic->argp == FP) g->panic->argp = bottom-of-frame // // MOV g_panic(g), RT1 // CBNZ checkargp // end: // NOP // ... function body ... // checkargp: // MOV panic_argp(RT1), RT2
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 05:46:32 UTC 2023 - 28.4K bytes - Viewed (0) -
src/cmd/cgo/internal/teststdio/stdio_test.go
GOPATH, err := os.MkdirTemp("", "cgostdio") if err != nil { log.Panic(err) } defer os.RemoveAll(GOPATH) os.Setenv("GOPATH", GOPATH) // Copy testdata into GOPATH/src/cgostdio, along with a go.mod file // declaring the same path. modRoot := filepath.Join(GOPATH, "src", "cgostdio") if err := cgotest.OverlayDir(modRoot, "testdata"); err != nil { log.Panic(err) } if err := os.Chdir(modRoot); err != nil { log.Panic(err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 22 20:56:09 UTC 2023 - 1.8K bytes - Viewed (0) -
src/math/floor_noasm.go
package math const haveArchFloor = false func archFloor(x float64) float64 { panic("not implemented") } const haveArchCeil = false func archCeil(x float64) float64 { panic("not implemented") } const haveArchTrunc = false func archTrunc(x float64) float64 { panic("not implemented")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 23 08:34:12 UTC 2024 - 543 bytes - Viewed (0) -
src/crypto/aes/cipher_asm.go
func (c *aesCipherAsm) Encrypt(dst, src []byte) { boring.Unreachable() if len(src) < BlockSize { panic("crypto/aes: input not full block") } if len(dst) < BlockSize { panic("crypto/aes: output not full block") } if alias.InexactOverlap(dst[:BlockSize], src[:BlockSize]) { panic("crypto/aes: invalid buffer overlap") } encryptBlockAsm(int(c.l)/4-1, &c.enc[0], &dst[0], &src[0]) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 14:58:19 UTC 2024 - 3K bytes - Viewed (0) -
src/mime/example_test.go
header, err = dec.Decode("=?x-case?q?hello!?=") if err != nil { panic(err) } fmt.Println(header) // Output: // ¡Hola, señor! // HELLO! } func ExampleWordDecoder_DecodeHeader() { dec := new(mime.WordDecoder) header, err := dec.DecodeHeader("=?utf-8?q?=C3=89ric?= <******@****.***>, =?utf-8?q?Ana=C3=AFs?= <******@****.***>") if err != nil { panic(err) } fmt.Println(header)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 20 18:41:18 UTC 2020 - 2.9K bytes - Viewed (0) -
test/fixedbugs/bug401.go
} func main() { var t T if v := real(t.cplx()); v != 1 { panic("not-inlined complex call failed") } _ = imag(t.cplx()) _ = real(t.cplx2()) if v := imag(t.cplx2()); v != 1 { panic("potentially inlined complex call failed") } var i I i = t if v := real(i.cplx()); v != 1 { panic("potentially inlined complex call failed") } _ = imag(i.cplx())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 740 bytes - Viewed (0) -
test/fixedbugs/issue5793.go
return []byte{'a', 'b'}, '1', '2' } func main() { if c := complex(complexArgs()); c != 5+7i { panic(c) } if s := append(appendArgs()); len(s) != 2 || s[0] != "foo" || s[1] != "bar" { panic(s) } if b := append(appendMultiArgs()); len(b) != 4 || b[0] != 'a' || b[1] != 'b' || b[2] != '1' || b[3] != '2' { panic(b) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 793 bytes - Viewed (0)