- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for PanicNilError (0.16 sec)
-
src/runtime/panicnil_test.go
"runtime/metrics" "testing" ) func TestPanicNil(t *testing.T) { t.Run("default", func(t *testing.T) { checkPanicNil(t, new(runtime.PanicNilError)) }) t.Run("GODEBUG=panicnil=0", func(t *testing.T) { t.Setenv("GODEBUG", "panicnil=0") checkPanicNil(t, new(runtime.PanicNilError)) }) t.Run("GODEBUG=panicnil=1", func(t *testing.T) { t.Setenv("GODEBUG", "panicnil=1") checkPanicNil(t, nil) }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 19 22:26:43 UTC 2023 - 1.3K bytes - Viewed (0) -
src/runtime/panic.go
panic("Bad varint") } } } // A PanicNilError happens when code calls panic(nil). // // Before Go 1.21, programs that called panic(nil) observed recover returning nil. // Starting in Go 1.21, programs that call panic(nil) observe recover returning a *PanicNilError. // Programs can change back to the old behavior by setting GODEBUG=panicnil=1. type PanicNilError struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 43.8K bytes - Viewed (0) -
api/go1.21.txt
pkg regexp, method (*Regexp) UnmarshalText([]uint8) error #46159 pkg runtime, method (*PanicNilError) Error() string #25448 pkg runtime, method (*PanicNilError) RuntimeError() #25448 pkg runtime, method (*Pinner) Pin(interface{}) #46787 pkg runtime, method (*Pinner) Unpin() #46787 pkg runtime, type PanicNilError struct #25448 pkg runtime, type Pinner struct #46787
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 09:39:17 UTC 2023 - 25.6K bytes - Viewed (0) -
src/sync/oncefunc_test.go
calls := 0 f := sync.OnceFunc(func() { calls++ panic(nil) }) testOncePanicWith(t, &calls, f, func(label string, p any) { switch p.(type) { case nil, *runtime.PanicNilError: return } t.Fatalf("%s: want nil panic, got %v", label, p) }) } func TestOnceFuncGoexit(t *testing.T) { // If f calls Goexit, the results are unspecified. But check that f doesn't
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 17:31:33 UTC 2023 - 6.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"(*Func).Name", Method, 0}, {"(*MemProfileRecord).InUseBytes", Method, 0}, {"(*MemProfileRecord).InUseObjects", Method, 0}, {"(*MemProfileRecord).Stack", Method, 0}, {"(*PanicNilError).Error", Method, 21}, {"(*PanicNilError).RuntimeError", Method, 21}, {"(*Pinner).Pin", Method, 21}, {"(*Pinner).Unpin", Method, 21}, {"(*StackRecord).Stack", Method, 0}, {"(*TypeAssertionError).Error", Method, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)