(t *testing.T)
| 2734 | } |
| 2735 | |
| 2736 | func 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 | |
| 2753 | func TestEventuallyFalse(t *testing.T) { |
| 2754 | mockT := new(testing.T) |
nothing calls this directly
no test coverage detected
searching dependent graphs…