- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 892 for panics (0.22 sec)
-
src/math/rand/v2/rand.go
// It panics if n <= 0. func (r *Rand) Int64N(n int64) int64 { if n <= 0 { panic("invalid argument to Int64N") } return int64(r.uint64n(uint64(n))) } // Uint64N returns, as a uint64, a non-negative pseudo-random number in the half-open interval [0,n). // It panics if n == 0. func (r *Rand) Uint64N(n uint64) uint64 { if n == 0 { panic("invalid argument to Uint64N") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 02:25:49 UTC 2024 - 12.8K bytes - Viewed (0) -
src/syscall/js/js.go
// It panics if v is not a JavaScript number. func (v Value) Int() int { return int(v.float("Value.Int")) } // Bool returns the value v as a bool. // It panics if v is not a JavaScript boolean. func (v Value) Bool() bool { switch v.ref { case valueTrue.ref: return true case valueFalse.ref: return false default: panic(&ValueError{"Value.Bool", v.Type()}) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 14:35:26 UTC 2024 - 19.5K bytes - Viewed (0) -
src/log/slog/value.go
} // Int64 returns v's value as an int64. It panics // if v is not a signed integer. func (v Value) Int64() int64 { if g, w := v.Kind(), KindInt64; g != w { panic(fmt.Sprintf("Value kind is %s, not %s", g, w)) } return int64(v.num) } // Uint64 returns v's value as a uint64. It panics // if v is not an unsigned integer. func (v Value) Uint64() uint64 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:12:08 UTC 2024 - 13.3K bytes - Viewed (0) -
src/internal/reflectlite/value.go
} return f.Name() } // mustBeExported panics if f records that the value was obtained using // an unexported field. func (f flag) mustBeExported() { if f == 0 { panic(&ValueError{methodName(), 0}) } if f&flagRO != 0 { panic("reflect: " + methodName() + " using value obtained using unexported field") } } // mustBeAssignable panics if f records that the value is not assignable,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:01:54 UTC 2024 - 13.6K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_fuzz.txt
stdout 'fuzz target' # Test that f.Error within f.Fuzz panics ! go test error_fuzz_fn_fuzz_test.go ! stdout ^ok ! stdout 'error here' stdout FAIL stdout 'fuzz target' # Test that f.Fail within f.Fuzz panics ! go test fail_fuzz_fn_fuzz_test.go ! stdout ^ok stdout FAIL stdout 'fuzz target' # Test that f.Skip within f.Fuzz panics ! go test skip_fuzz_fn_fuzz_test.go ! stdout ^ok ! stdout 'skip here' stdout FAIL
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 16 16:53:11 UTC 2023 - 10.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/windows/dll_windows.go
} } return nil } // mustFind is like Find but panics if search fails. func (p *LazyProc) mustFind() { e := p.Find() if e != nil { panic(e) } } // Addr returns the address of the procedure represented by p. // The return value can be passed to Syscall to run the procedure. // It will panic if the procedure cannot be found. func (p *LazyProc) Addr() uintptr { p.mustFind()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Dec 05 12:36:42 UTC 2020 - 12K 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/vendor/golang.org/x/crypto/cryptobyte/builder.go
// that outlive the continuation. // // If the continuation panics with a value of type BuildError then the inner // error will be returned as the error from Bytes. If the child panics // otherwise then Bytes will repanic with the same value. type BuilderContinuation func(child *Builder) // BuildError wraps an error. If a BuilderContinuation panics with this value, // the panic will be recovered and the inner error will be returned from
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 10 16:32:44 UTC 2023 - 9.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/installer_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 18:15:22 UTC 2024 - 12.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/timeout_test.go
t.Errorf("got Write error of %v; expected %v", err, http.ErrHandlerTimeout) } // Panics doPanic <- "inner handler panics" res, err = http.Get(ts.URL) if err != nil { t.Fatal(err) } if res.StatusCode != http.StatusInternalServerError { t.Errorf("got res.StatusCode %d; expected %d due to panic", res.StatusCode, http.StatusInternalServerError) } select { case err := <-gotPanic:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 18.4K bytes - Viewed (0)