MCPcopy Index your code
hub / github.com/expr-lang/expr / NotPanicsf

Function NotPanicsf

internal/testify/assert/assertion_format.go:639–644  ·  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

637//
638// assert.NotPanicsf(t, func(){ RemainCalm() }, "error message %s", "formatted")
639func NotPanicsf(t TestingT, f PanicTestFunc, msg string, args ...interface{}) bool {
640 if h, ok := t.(tHelper); ok {
641 h.Helper()
642 }
643 return NotPanics(t, f, append([]interface{}{msg}, args...)...)
644}
645
646// NotRegexpf asserts that a specified regexp does not match a string.
647//

Callers 2

NotPanicsfFunction · 0.92
NotPanicsfMethod · 0.70

Calls 2

NotPanicsFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…