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

Method Positivef

require/require_forward.go:1547–1552  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1545// a.Positivef(1, "error message %s", "formatted")
1546// a.Positivef(1.23, "error message %s", "formatted")
1547func (a *Assertions) Positivef(e interface{}, msg string, args ...interface{}) {
1548 if h, ok := a.t.(tHelper); ok {
1549 h.Helper()
1550 }
1551 Positivef(a.t, e, msg, args...)
1552}
1553
1554// Regexp asserts that a specified regexp matches a string.
1555//

Callers

nothing calls this directly

Calls 2

PositivefFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected