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

Function Positivef

require/require.go:1952–1960  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1950// require.Positivef(t, 1, "error message %s", "formatted")
1951// require.Positivef(t, 1.23, "error message %s", "formatted")
1952func Positivef(t TestingT, e interface{}, msg string, args ...interface{}) {
1953 if h, ok := t.(tHelper); ok {
1954 h.Helper()
1955 }
1956 if assert.Positivef(t, e, msg, args...) {
1957 return
1958 }
1959 t.FailNow()
1960}
1961
1962// Regexp asserts that a specified regexp matches a string.
1963//

Callers 1

PositivefMethod · 0.70

Calls 3

PositivefFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected