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

Method Positive

require/require_forward.go:1536–1541  ·  view source on GitHub ↗

Positive asserts that the specified element is positive a.Positive(1) a.Positive(1.23)

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

Source from the content-addressed store, hash-verified

1534// a.Positive(1)
1535// a.Positive(1.23)
1536func (a *Assertions) Positive(e interface{}, msgAndArgs ...interface{}) {
1537 if h, ok := a.t.(tHelper); ok {
1538 h.Helper()
1539 }
1540 Positive(a.t, e, msgAndArgs...)
1541}
1542
1543// Positivef asserts that the specified element is positive
1544//

Callers

nothing calls this directly

Calls 2

PositiveFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected