- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 1,056 for mypanic (0.16 sec)
-
test/fixedbugs/bug070.go
import "fmt" func main() { var i, k int var r string outer: for k = 0; k < 2; k++ { r += fmt.Sprintln("outer loop top k", k) if k != 0 { panic("k not zero") } // inner loop breaks this one every time for i = 0; i < 2; i++ { if i != 0 { panic("i not zero") } // loop breaks every time r += fmt.Sprintln("inner loop top i", i) if true { r += "do break\n" break outer } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 17 04:49:30 UTC 2012 - 715 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) -
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) -
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) -
internal/dsync/drwmutex_test.go
t.Fatalf("unlock of unlocked RWMutex did not panic") } }() mu := NewDRWMutex(ds, "test") mu.Unlock(context.Background()) } // Borrowed from rwmutex_test.go func TestUnlockPanic2(t *testing.T) { mu := NewDRWMutex(ds, "test-unlock-panic-2") defer func() { if recover() == nil { t.Fatalf("unlock of unlocked RWMutex did not panic") }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Dec 24 03:49:07 UTC 2022 - 9.7K bytes - Viewed (0) -
test/fixedbugs/bug114.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 21 23:19:59 UTC 2012 - 556 bytes - Viewed (0) -
test/fixedbugs/issue4066.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 04 16:07:21 UTC 2013 - 543 bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/testdata/issue62430/main.go
import ( "fmt" "plugin" "unicode" ) func main() { p, err := plugin.Open("issue62430.so") if err != nil { panic(err) } s, err := p.Lookup("F") if err != nil { panic(err) } f := s.(func(string) *unicode.RangeTable) if f("C") == nil { panic("unicode.Categories not properly initialized") } else { fmt.Println("unicode.Categories properly initialized") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 07 13:18:51 UTC 2023 - 804 bytes - Viewed (0)