- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for doPanic (0.16 sec)
-
src/text/template/exec_test.go
funcs := map[string]any{ "doPanic": func() string { panic("custom panic string") }, } tests := []struct { name string input string data any wantErr string }{ { "direct func call panics", "{{doPanic}}", (*T)(nil), `template: t:1:2: executing "t" at <doPanic>: error calling doPanic: custom panic string`, }, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 22:23:55 UTC 2024 - 60.1K bytes - Viewed (0) -
src/html/template/exec_test.go
funcs := map[string]any{ "doPanic": func() string { panic("custom panic string") }, } tests := []struct { name string input string data any wantErr string }{ { "direct func call panics", "{{doPanic}}", (*T)(nil), `template: t:1:2: executing "t" at <doPanic>: error calling doPanic: custom panic string`, }, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 24 21:59:12 UTC 2024 - 57.6K bytes - Viewed (0) -
src/testing/testing.go
// reported to the user. See issue 41479. if didPanic { return } if err != nil { panic(err) } running.Delete(t.name) t.signal <- signal }() doPanic := func(err any) { t.Fail() if r := t.runCleanup(recoverAndReturnPanic); r != nil { t.Logf("cleanup panicked with %v", r) } // Flush the output log up to the root before dying.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 76.1K bytes - Viewed (0) -
src/runtime/traceback.go
return false } name := sf.name() // Special case: always show runtime.gopanic frame // in the middle of a stack trace, so that we can // see the boundary between ordinary code and // panic-induced deferred code. // See golang.org/issue/5832. if name == "runtime.gopanic" && !firstFrame { return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 55.1K bytes - Viewed (0)