MCPcopy Index your code
hub / github.com/expr-lang/expr / Positivef

Function Positivef

internal/testify/assert/assertion_format.go:728–733  ·  view source on GitHub ↗

Positivef asserts that the specified element is positive assert.Positivef(t, 1, "error message %s", "formatted") assert.Positivef(t, 1.23, "error message %s", "formatted")

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

Source from the content-addressed store, hash-verified

726// assert.Positivef(t, 1, "error message %s", "formatted")
727// assert.Positivef(t, 1.23, "error message %s", "formatted")
728func Positivef(t TestingT, e interface{}, msg string, args ...interface{}) bool {
729 if h, ok := t.(tHelper); ok {
730 h.Helper()
731 }
732 return Positive(t, e, append([]interface{}{msg}, args...)...)
733}
734
735// Regexpf asserts that a specified regexp matches a string.
736//

Callers 2

PositivefFunction · 0.92
PositivefMethod · 0.70

Calls 2

PositiveFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…