MCPcopy
hub / github.com/stretchr/testify / Positive

Function Positive

require/require.go:1938–1946  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1936// require.Positive(t, 1)
1937// require.Positive(t, 1.23)
1938func Positive(t TestingT, e interface{}, msgAndArgs ...interface{}) {
1939 if h, ok := t.(tHelper); ok {
1940 h.Helper()
1941 }
1942 if assert.Positive(t, e, msgAndArgs...) {
1943 return
1944 }
1945 t.FailNow()
1946}
1947
1948// Positivef asserts that the specified element is positive
1949//

Callers 1

PositiveMethod · 0.70

Calls 3

PositiveFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected