(t *testing.T)
| 518 | } |
| 519 | |
| 520 | func TestBoolAssertionFunc(t *testing.T) { |
| 521 | tests := []struct { |
| 522 | name string |
| 523 | value bool |
| 524 | assertion BoolAssertionFunc |
| 525 | }{ |
| 526 | {"true", true, True}, |
| 527 | {"false", false, False}, |
| 528 | } |
| 529 | |
| 530 | for _, tt := range tests { |
| 531 | t.Run(tt.name, func(t *testing.T) { |
| 532 | tt.assertion(t, tt.value) |
| 533 | }) |
| 534 | } |
| 535 | } |
| 536 | |
| 537 | func ExampleErrorAssertionFunc() { |
| 538 | t := &testing.T{} // provided by test |
nothing calls this directly
no test coverage detected
searching dependent graphs…