MCPcopy Create free account
hub / github.com/expr-lang/expr / TestNotPanics

Function TestNotPanics

internal/testify/require/requirements_test.go:176–187  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

174}
175
176func TestNotPanics(t *testing.T) {
177
178 NotPanics(t, func() {})
179
180 mockT := new(MockT)
181 NotPanics(mockT, func() {
182 panic("Panic!")
183 })
184 if !mockT.Failed {
185 t.Error("Check should fail")
186 }
187}
188
189func TestNoError(t *testing.T) {
190

Callers

nothing calls this directly

Calls 2

NotPanicsFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…