- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 892 for panics (0.23 sec)
-
src/runtime/cgocall.go
return } if !top && !isPinned(p) { panic(errorString(msg)) } cgoCheckUnknownPointer(p, msg) } } // cgoCheckUnknownPointer is called for an arbitrary pointer into Go // memory. It checks whether that Go memory contains any other // pointer into unpinned Go memory. If it does, we panic. // The return values are unused but useful to see in panic tracebacks.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:47 UTC 2024 - 24.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/modfile/read.go
} } // parse parses the input file. func parse(file string, data []byte) (f *FileSyntax, err error) { // The parser panics for both routine errors like syntax errors // and for programmer bugs like array index errors. // Turn both into error returns. Catching bug panics is // especially important when processing many files. in := newInput(file, data) defer func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 23.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/sumdb/tlog/tile.go
} // TileForIndex returns the tile of fixed height h ≥ 1 // and least width storing the given hash storage index. // // If h ≤ 0, [TileForIndex] panics. func TileForIndex(h int, index int64) Tile { if h <= 0 { panic(fmt.Sprintf("TileForIndex: invalid height %d", h)) } t, _, _ := tileForIndex(h, index) return t } // tileForIndex returns the tile of height h ≥ 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13K bytes - Viewed (0) -
src/cmd/internal/src/pos.go
} // NewInliningBase returns a copy of the orig PosBase with the given inlining // index. If orig == nil, NewInliningBase panics. func NewInliningBase(orig *PosBase, inlTreeIndex int) *PosBase { if orig == nil { panic("no old PosBase") } base := *orig base.inl = inlTreeIndex base.fileIndex = -1 if orig == orig.pos.base { base.pos.base = &base } return &base
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:52:41 UTC 2023 - 15.5K bytes - Viewed (0) -
src/math/big/float.go
return z } func validateBinaryOperands(x, y *Float) { if !debugFloat { // avoid performance bugs panic("validateBinaryOperands called but debugFloat is not set") } if len(x.mant) == 0 { panic("empty mantissa for x") } if len(y.mant) == 0 { panic("empty mantissa for y") } } // z = x + y, ignoring signs of x and y for the addition
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 15:46:54 UTC 2024 - 44.5K bytes - Viewed (0) -
src/time/tick_test.go
t.Errorf("Tick(-1) = %v; want nil", got) } } // Test that NewTicker panics when given a duration less than zero. func TestNewTickerLtZeroDuration(t *testing.T) { defer func() { if err := recover(); err == nil { t.Errorf("NewTicker(-1) should have panicked") } }() NewTicker(-1) } // Test that Ticker.Reset panics when given a duration less than zero. func TestTickerResetLtZeroDuration(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:10:37 UTC 2024 - 14.7K bytes - Viewed (0) -
src/runtime/defer_test.go
} }() defer func() { panic("panic2") }() panic("panic1") } // This tests that recover() does not succeed unless it is called directly from a // defer function that is directly called by the panic. Here, we first call it // from a defer function that is created by the defer function called directly by // the panic. In func TestRecoverMatching(t *testing.T) { defer func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 18:57:24 UTC 2023 - 11.4K bytes - Viewed (0) -
src/bytes/buffer_test.go
} } type panicReader struct{ panic bool } func (r panicReader) Read(p []byte) (int, error) { if r.panic { panic("oops") } return 0, io.EOF } // Make sure that an empty Buffer remains empty when // it is "grown" before a Read that panics func TestReadFromPanicReader(t *testing.T) { // First verify non-panic behaviour var buf Buffer
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 13:31:36 UTC 2024 - 18.6K bytes - Viewed (0) -
src/runtime/pinner.go
return nil } counter := (*specialPinCounter)(unsafe.Pointer(*t)) return &counter.counter } // to be able to test that the GC panics when a pinned pointer is leaking, this // panic function is a variable, that can be overwritten by a test. var pinnerLeakPanic = func() { panic(errorString("runtime.Pinner: found leaking pinned pointer; forgot to call Unpin()?"))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 11K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/validating/dispatcher.go
default: } wg := sync.WaitGroup{} errCh := make(chan error, 2*len(relevantHooks)) // double the length to handle extra errors for panics in the gofunc wg.Add(len(relevantHooks)) for i := range relevantHooks { go func(invocation *generic.WebhookInvocation, idx int) { ignoreClientCallFailures := false hookName := "unknown"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 23 20:24:12 UTC 2023 - 13K bytes - Viewed (0)