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

Function Positivef

internal/testify/require/require.go:1841–1849  ·  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

1839// assert.Positivef(t, 1, "error message %s", "formatted")
1840// assert.Positivef(t, 1.23, "error message %s", "formatted")
1841func Positivef(t TestingT, e interface{}, msg string, args ...interface{}) {
1842 if h, ok := t.(tHelper); ok {
1843 h.Helper()
1844 }
1845 if assert.Positivef(t, e, msg, args...) {
1846 return
1847 }
1848 t.FailNow()
1849}
1850
1851// Regexp asserts that a specified regexp matches a string.
1852//

Callers 1

PositivefMethod · 0.70

Calls 3

PositivefFunction · 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…