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

Method Negative

assert/assertion_forward.go:1021–1026  ·  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

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

Callers

nothing calls this directly

Calls 2

NegativeFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected