MCPcopy Create free account
hub / github.com/stretchr/testify / TestBoolAssertionFunc

Function TestBoolAssertionFunc

assert/assertions_test.go:2861–2876  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2859}
2860
2861func 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
2878func ExampleErrorAssertionFunc() {
2879 t := &testing.T{} // provided by test

Callers

nothing calls this directly

Calls 1

RunMethod · 0.65

Tested by

no test coverage detected