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

Method Negative

require/require_forward.go:1022–1027  ·  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

1020// a.Negative(-1)
1021// a.Negative(-1.23)
1022func (a *Assertions) Negative(e interface{}, msgAndArgs ...interface{}) {
1023 if h, ok := a.t.(tHelper); ok {
1024 h.Helper()
1025 }
1026 Negative(a.t, e, msgAndArgs...)
1027}
1028
1029// Negativef asserts that the specified element is negative
1030//

Callers

nothing calls this directly

Calls 2

NegativeFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected