- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 885 for panicIP (0.15 sec)
-
staging/src/k8s.io/apiserver/pkg/server/mux/pathrecorder.go
// If a handler already exists for pattern, Handle panics. func (m *PathRecorderMux) HandleFunc(path string, handler func(http.ResponseWriter, *http.Request)) { m.Handle(path, http.HandlerFunc(handler)) } // UnlistedHandle registers the handler for the given pattern, but doesn't list it. // If a handler already exists for pattern, Handle panics. func (m *PathRecorderMux) UnlistedHandle(path string, handler http.Handler) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 12 01:52:15 UTC 2024 - 8.5K bytes - Viewed (0) -
src/internal/trace/value.go
// to that possibility. func (v Value) Kind() ValueKind { return v.kind } // Uint64 returns the uint64 value for a MetricSampleUint64. // // Panics if this metric sample's Kind is not MetricSampleUint64. func (v Value) Uint64() uint64 { if v.kind != ValueUint64 { panic("Uint64 called on Value of a different Kind") } return v.scalar } // valueAsString produces a debug string value. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1.2K bytes - Viewed (0) -
src/net/http/httptest/httptest.go
// // The provided body may be nil. If the body is of type *bytes.Reader, // *strings.Reader, or *bytes.Buffer, the Request.ContentLength is // set. // // NewRequest panics on error for ease of use in testing, where a // panic is acceptable. // // To generate a client HTTP request instead of a server request, see // the NewRequest function in the net/http package.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 18:09:14 UTC 2024 - 2.6K bytes - Viewed (0) -
src/math/rand/rand.go
// from the default [Source]. // It panics if n <= 0. func Int63n(n int64) int64 { return globalRand().Int63n(n) } // Int31n returns, as an int32, a non-negative pseudo-random number in the half-open interval [0,n) // from the default [Source]. // It panics if n <= 0. func Int31n(n int32) int32 { return globalRand().Int31n(n) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:09:08 UTC 2024 - 16.9K bytes - Viewed (0) -
src/sync/waitgroup.go
// Need to model this as a read, because there can be // several concurrent wg.counter transitions from 0. race.Read(unsafe.Pointer(&wg.sema)) } if v < 0 { panic("sync: negative WaitGroup counter") } if w != 0 && delta > 0 && v == int32(delta) { panic("sync: WaitGroup misuse: Add called concurrently with Wait") } if v > 0 || w == 0 { return } // This goroutine has set counter to 0 when waiters > 0.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 21:14:51 UTC 2024 - 4K bytes - Viewed (0) -
src/crypto/internal/boring/fipstls/tls.go
// standard crypto (that is, even when Enabled = false). func Force() { required.Store(true) } // Abandon allows non-FIPS-approved settings. // If called from a non-test binary, it panics. func Abandon() { // Note: Not using boring.UnreachableExceptTests because we want // this test to happen even when boring.Enabled = false. name := runtime_arg0() // Allow _test for Go command, .test for Bazel,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 14:00:54 UTC 2024 - 1.7K bytes - Viewed (0) -
src/slices/slices.go
// The result is never nil. // Repeat panics if count is negative or if the result of (len(x) * count) // overflows. func Repeat[S ~[]E, E any](x S, count int) S { if count < 0 { panic("cannot be negative") } const maxInt = ^uint(0) >> 1 if hi, lo := bits.Mul(uint(len(x)), uint(count)); hi > 0 || lo > maxInt { panic("the result of (len(x) * count) overflows") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 29 14:01:59 UTC 2024 - 13.6K bytes - Viewed (0) -
src/runtime/ehooks_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 16:41:13 UTC 2024 - 2.1K bytes - Viewed (0) -
src/cmd/distpack/pack.go
log.Fatal(err) } reportHash(name) } // check panics if err is not nil. Otherwise it returns x. // It is only meant to be used in a function that has deferred // a function to recover appropriately from the panic. func check[T any](x T, err error) T { check1(err) return x } // check1 panics if err is not nil. // It is only meant to be used in a function that has deferred
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 10.9K bytes - Viewed (0) -
src/errors/wrap.go
// An error type might provide an As method so it can be treated as if it were a // different error type. // // As panics if target is not a non-nil pointer to either a type that implements // error, or to any interface type. func As(err error, target any) bool { if err == nil { return false } if target == nil { panic("errors: target cannot be nil") } val := reflectlite.ValueOf(target) typ := val.Type()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 17:13:04 UTC 2024 - 4.3K bytes - Viewed (0)