MCPcopy Create free account
hub / github.com/expr-lang/expr / TestBoolAssertionFunc

Function TestBoolAssertionFunc

internal/testify/assert/assertions_test.go:2657–2672  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2655}
2656
2657func 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
2674func ExampleErrorAssertionFunc() {
2675 t := &testing.T{} // provided by test

Callers

nothing calls this directly

Calls 1

RunMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…