- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 1,938 for panics (0.14 sec)
-
src/runtime/debug/stack.go
// fatal crash message. type CrashOptions struct { /* for future expansion */ } // SetCrashOutput configures a single additional file where unhandled // panics and other fatal errors are printed, in addition to standard error. // There is only one additional file: calling SetCrashOutput again overrides // any earlier call.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 15:19:04 UTC 2024 - 3.2K bytes - Viewed (0) -
src/cmd/compile/internal/types/pkg.go
return s } str := InternString(name) return pkg.Lookup(str) } // LookupNum looks up the symbol starting with prefix and ending with // the decimal n. If prefix is too long, LookupNum panics. func (pkg *Pkg) LookupNum(prefix string, n int) *Sym { var buf [20]byte // plenty long enough for all current users copy(buf[:], prefix) b := strconv.AppendInt(buf[:len(prefix)], int64(n), 10)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 16:28:50 UTC 2023 - 3.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/analysis.go
// -- facts -- // ImportObjectFact retrieves a fact associated with obj. // Given a value ptr of type *T, where *T satisfies Fact, // ImportObjectFact copies the value to *ptr. // // ImportObjectFact panics if called after the pass is complete. // ImportObjectFact is not concurrency-safe. ImportObjectFact func(obj types.Object, fact Fact) bool // ImportPackageFact retrieves a fact associated with package pkg,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 9.1K bytes - Viewed (0) -
src/math/big/prime_test.go
t.Errorf("#%d composite found to be prime (%s)", i, s) } } // check that ProbablyPrime panics if n <= 0 c := NewInt(11) // a prime for _, n := range []int{-1, 0, 1} { func() { defer func() { if n < 0 && recover() == nil { t.Fatalf("expected panic from ProbablyPrime(%d)", n) } }() if !c.ProbablyPrime(n) { t.Fatalf("%v should be a prime", c) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 12:54:00 UTC 2019 - 7.1K bytes - Viewed (0) -
src/runtime/signal_riscv64.go
func (c *sigctxt) preparePanic(sig uint32, gp *g) { // We arrange RA, and pc to pretend the panicking // function calls sigpanic directly. // Always save RA to stack so that panics in leaf // functions are correctly handled. This smashes // the stack frame but we're not going back there // anyway. sp := c.sp() - goarch.PtrSize c.set_sp(sp) *(*uint64)(unsafe.Pointer(uintptr(sp))) = c.ra()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 04 02:55:17 UTC 2023 - 2.9K bytes - Viewed (0) -
src/runtime/signal_mipsx.go
func (c *sigctxt) preparePanic(sig uint32, gp *g) { // We arrange link, and pc to pretend the panicking // function calls sigpanic directly. // Always save LINK to stack so that panics in leaf // functions are correctly handled. This smashes // the stack frame but we're not going back there // anyway. sp := c.sp() - sys.MinFrameSize c.set_sp(sp) *(*uint32)(unsafe.Pointer(uintptr(sp))) = c.link()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 3.1K bytes - Viewed (0) -
pkg/test/util/file/file.go
t.Helper() content, err := AsBytes(filename) if err != nil { t.Fatal(err) } return content } // MustAsBytes calls AsBytes and panics the test if any errors occurred. func MustAsBytes(filename string) []byte { content, err := AsBytes(filename) if err != nil { panic(err) } return content } // AsStringArray is a convenience wrapper around os.ReadFile that converts the content to a string.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 17 02:22:22 UTC 2023 - 4.6K bytes - Viewed (0) -
.github/ISSUE_TEMPLATE/00-bug.yml
id: actual-behavior attributes: label: "What did you see happen?" description: Command invocations and their associated output, functions with their arguments and return results, full stacktraces for panics (upload a file if it is very long), etc. Prefer copying text output over using screenshots. validations: required: true - type: textarea id: expected-behavior attributes:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 04 23:31:17 UTC 2024 - 3.3K bytes - Viewed (0) -
src/internal/trace/reader_test.go
for { ev, err := r.ReadEvent() if err != nil { break } if !testGetters { continue } // Make sure getters don't do anything that panics switch ev.Kind() { case trace.EventLabel: ev.Label() case trace.EventLog: ev.Log() case trace.EventMetric: ev.Metric() case trace.EventRangeActive, trace.EventRangeBegin: ev.Range() case trace.EventRangeEnd:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 3.7K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/clientset.go
if err != nil { return nil, err } return &cs, nil } // NewForConfigOrDie creates a new Clientset for the given config and // panics if there is an error in the config. func NewForConfigOrDie(c *rest.Config) *Clientset { cs, err := NewForConfig(c) if err != nil { panic(err) } return cs } // New creates a new Clientset for the given RESTClient. func New(c rest.Interface) *Clientset {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 08 21:36:26 UTC 2023 - 4.4K bytes - Viewed (0)