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

Function Negative

require/require.go:1286–1294  ·  view source on GitHub ↗

Negative asserts that the specified element is negative require.Negative(t, -1) require.Negative(t, -1.23)

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

Source from the content-addressed store, hash-verified

1284// require.Negative(t, -1)
1285// require.Negative(t, -1.23)
1286func Negative(t TestingT, e interface{}, msgAndArgs ...interface{}) {
1287 if h, ok := t.(tHelper); ok {
1288 h.Helper()
1289 }
1290 if assert.Negative(t, e, msgAndArgs...) {
1291 return
1292 }
1293 t.FailNow()
1294}
1295
1296// Negativef asserts that the specified element is negative
1297//

Callers 1

NegativeMethod · 0.70

Calls 3

NegativeFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected