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

Method Negative

internal/testify/assert/assertion_forward.go:983–988  ·  view source on GitHub ↗

Negative asserts that the specified element is negative a.Negative(-1) a.Negative(-1.23)

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

Source from the content-addressed store, hash-verified

981// a.Negative(-1)
982// a.Negative(-1.23)
983func (a *Assertions) Negative(e interface{}, msgAndArgs ...interface{}) bool {
984 if h, ok := a.t.(tHelper); ok {
985 h.Helper()
986 }
987 return Negative(a.t, e, msgAndArgs...)
988}
989
990// Negativef asserts that the specified element is negative
991//

Callers

nothing calls this directly

Calls 2

NegativeFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected