MCPcopy
hub / github.com/expr-lang/expr / Falsef

Function Falsef

internal/testify/require/require.go:561–569  ·  view source on GitHub ↗

Falsef asserts that the specified value is false. assert.Falsef(t, myBool, "error message %s", "formatted")

(t TestingT, value bool, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

559//
560// assert.Falsef(t, myBool, "error message %s", "formatted")
561func Falsef(t TestingT, value bool, msg string, args ...interface{}) {
562 if h, ok := t.(tHelper); ok {
563 h.Helper()
564 }
565 if assert.Falsef(t, value, msg, args...) {
566 return
567 }
568 t.FailNow()
569}
570
571// FileExists checks whether a file exists in the given path. It also fails if
572// the path points to a directory or there is an error when trying to check the file.

Callers 1

FalsefMethod · 0.70

Calls 3

FalsefFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…