(t *testing.T)
| 2859 | } |
| 2860 | |
| 2861 | func TestBoolAssertionFunc(t *testing.T) { |
| 2862 | tests := []struct { |
| 2863 | name string |
| 2864 | value bool |
| 2865 | assertion BoolAssertionFunc |
| 2866 | }{ |
| 2867 | {"true", true, True}, |
| 2868 | {"false", false, False}, |
| 2869 | } |
| 2870 | |
| 2871 | for _, tt := range tests { |
| 2872 | t.Run(tt.name, func(t *testing.T) { |
| 2873 | tt.assertion(t, tt.value) |
| 2874 | }) |
| 2875 | } |
| 2876 | } |
| 2877 | |
| 2878 | func ExampleErrorAssertionFunc() { |
| 2879 | t := &testing.T{} // provided by test |