(t *testing.T)
| 2655 | } |
| 2656 | |
| 2657 | func TestBoolAssertionFunc(t *testing.T) { |
| 2658 | tests := []struct { |
| 2659 | name string |
| 2660 | value bool |
| 2661 | assertion BoolAssertionFunc |
| 2662 | }{ |
| 2663 | {"true", true, True}, |
| 2664 | {"false", false, False}, |
| 2665 | } |
| 2666 | |
| 2667 | for _, tt := range tests { |
| 2668 | t.Run(tt.name, func(t *testing.T) { |
| 2669 | tt.assertion(t, tt.value) |
| 2670 | }) |
| 2671 | } |
| 2672 | } |
| 2673 | |
| 2674 | func ExampleErrorAssertionFunc() { |
| 2675 | t := &testing.T{} // provided by test |
nothing calls this directly
no test coverage detected
searching dependent graphs…