MCPcopy
hub / github.com/stretchr/testify / NotPanicsf

Function NotPanicsf

assert/assertion_format.go:683–688  ·  view source on GitHub ↗

NotPanicsf asserts that the code inside the specified PanicTestFunc does NOT panic. assert.NotPanicsf(t, func(){ RemainCalm() }, "error message %s", "formatted")

(t TestingT, f PanicTestFunc, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

681//
682// assert.NotPanicsf(t, func(){ RemainCalm() }, "error message %s", "formatted")
683func NotPanicsf(t TestingT, f PanicTestFunc, msg string, args ...interface{}) bool {
684 if h, ok := t.(tHelper); ok {
685 h.Helper()
686 }
687 return NotPanics(t, f, append([]interface{}{msg}, args...)...)
688}
689
690// NotRegexpf asserts that a specified regexp does not match a string.
691//

Callers 2

NotPanicsfFunction · 0.92
NotPanicsfMethod · 0.70

Calls 2

NotPanicsFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…