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

Function TestPanicAssertionFunc

internal/testify/assert/assertions_test.go:2736–2751  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2734}
2735
2736func TestPanicAssertionFunc(t *testing.T) {
2737 tests := []struct {
2738 name string
2739 panicFn PanicTestFunc
2740 assertion PanicAssertionFunc
2741 }{
2742 {"not panic", func() {}, NotPanics},
2743 {"panic", func() { panic(nil) }, Panics},
2744 }
2745
2746 for _, tt := range tests {
2747 t.Run(tt.name, func(t *testing.T) {
2748 tt.assertion(t, tt.panicFn)
2749 })
2750 }
2751}
2752
2753func TestEventuallyFalse(t *testing.T) {
2754 mockT := new(testing.T)

Callers

nothing calls this directly

Calls 1

RunMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…