- Sort Score
- Result 10 results
- Languages All
Results 211 - 220 of 1,675 for mypanic (0.32 sec)
-
src/cmd/cover/testdata/main.go
} // verifyPanic is a special check for the known counter that should be // after the panic call in testPanic. func verifyPanic() { if coverTest.Count[panicIndex-1] != 1 { // Sanity check for test before panic. fmt.Fprintf(os.Stderr, "bad before panic") PASS = false } if coverTest.Count[panicIndex] != 0 { fmt.Fprintf(os.Stderr, "bad at panic: %d should be 0\n", coverTest.Count[panicIndex]) PASS = false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 04 16:40:40 UTC 2016 - 3K bytes - Viewed (0) -
test/ken/slicearray.go
"len=", len(by), "hb-lb=", hb-lb) panic("fail") } if cap(by) != len(bx)-lb { println("t=", t, "lb=", lb, "hb=", hb, "cap=", cap(by), "len(bx)-lb=", len(bx)-lb) panic("fail") } for i := lb; i < hb; i++ { if bx[i] != by[i-lb] { println("t=", t, "lb=", lb, "hb=", hb, "bx[", i, "]=", bx[i], "by[", i-lb, "]=", by[i-lb]) panic("fail") } } by = nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Dec 05 12:50:44 UTC 2021 - 2.7K bytes - Viewed (0) -
src/crypto/aes/gcm_s390x.go
if len(nonce) != g.nonceSize { panic("crypto/cipher: incorrect nonce length given to GCM") } if uint64(len(plaintext)) > ((1<<32)-2)*BlockSize { panic("crypto/cipher: message too large for GCM") } ret, out := sliceForAppend(dst, len(plaintext)+g.tagSize) if alias.InexactOverlap(out[:len(plaintext)], plaintext) { panic("crypto/cipher: invalid buffer overlap") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 11.3K bytes - Viewed (0) -
src/crypto/ed25519/ed25519.go
return privateKey } func newKeyFromSeed(privateKey, seed []byte) { if l := len(seed); l != SeedSize { panic("ed25519: bad seed length: " + strconv.Itoa(l)) } h := sha512.Sum512(seed) s, err := edwards25519.NewScalar().SetBytesWithClamping(h[:32]) if err != nil { panic("ed25519: internal error: setting scalar failed") } A := (&edwards25519.Point{}).ScalarBaseMult(s) publicKey := A.Bytes()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:11:18 UTC 2024 - 11.7K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_json_panic_exit.txt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 26 19:50:36 UTC 2022 - 1.2K bytes - Viewed (0) -
test/rename.go
int64 + len + make + new + nil + panic + print + println + real + recover + rune + string + true + uint + uint8 + uint16 + uint32 + uint64 + uintptr + iota if n != NUM*(NUM-1)/2 { fmt.Println("BUG: wrong n", n, NUM*(NUM-1)/2) runtime.Breakpoint() // panic is inaccessible } } const (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 1.5K bytes - Viewed (0) -
pkg/test/framework/components/namespace/static.go
} func (s Static) Prefix() string { return string(s) } func (s Static) Labels() (map[string]string, error) { panic("implement me") } func (s Static) SetLabel(key, value string) error { panic("implement me") } func (s Static) RemoveLabel(key string) error { panic("implement me") } func (s Static) IsAmbient() bool { return strings.Contains(string(s), "ambient") }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 26 21:45:22 UTC 2023 - 1.3K bytes - Viewed (0) -
src/internal/abi/rangefuncconsts.go
// and panic indicators, and the runtime, which turns them into more meaningful strings // For best code generation, RF_DONE and RF_READY should be 0 and 1. const ( RF_DONE = RF_State(iota) // body of loop has exited in a non-panic way RF_READY // body of loop has not exited yet, is not running -- this is not a panic index
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:04:30 UTC 2024 - 940 bytes - Viewed (0) -
internal/event/config_test.go
</QueueConfiguration>`) queue3 := &Queue{} if err := xml.Unmarshal(data, queue3); err != nil { panic(err) } targetList1 := NewTargetList(context.Background()) targetList2 := NewTargetList(context.Background()) if err := targetList2.Add(&ExampleTarget{TargetID{"1", "webhook"}, false, false}); err != nil { panic(err) } testCases := []struct { queue *Queue region string
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Dec 05 10:16:33 UTC 2023 - 29K bytes - Viewed (0) -
src/reflect/swapper.go
v := ValueOf(slice) if v.Kind() != Slice { panic(&ValueError{Method: "Swapper", Kind: v.Kind()}) } // Fast path for slices of size 0 and 1. Nothing to swap. switch v.Len() { case 0: return func(i, j int) { panic("reflect: slice index out of range") } case 1: return func(i, j int) { if i != 0 || j != 0 { panic("reflect: slice index out of range") } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:34:30 UTC 2024 - 2K bytes - Viewed (0)