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

Function TestBoolAssertionFunc

internal/testify/require/requirements_test.go:520–535  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

518}
519
520func 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
537func ExampleErrorAssertionFunc() {
538 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…