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

Function Positive

internal/testify/require/require.go:1827–1835  ·  view source on GitHub ↗

Positive asserts that the specified element is positive assert.Positive(t, 1) assert.Positive(t, 1.23)

(t TestingT, e interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

1825// assert.Positive(t, 1)
1826// assert.Positive(t, 1.23)
1827func Positive(t TestingT, e interface{}, msgAndArgs ...interface{}) {
1828 if h, ok := t.(tHelper); ok {
1829 h.Helper()
1830 }
1831 if assert.Positive(t, e, msgAndArgs...) {
1832 return
1833 }
1834 t.FailNow()
1835}
1836
1837// Positivef asserts that the specified element is positive
1838//

Callers 1

PositiveMethod · 0.70

Calls 3

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