MCPcopy
hub / github.com/expr-lang/expr / Negative

Function Negative

internal/testify/require/require.go:1243–1251  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1241// assert.Negative(t, -1)
1242// assert.Negative(t, -1.23)
1243func Negative(t TestingT, e interface{}, msgAndArgs ...interface{}) {
1244 if h, ok := t.(tHelper); ok {
1245 h.Helper()
1246 }
1247 if assert.Negative(t, e, msgAndArgs...) {
1248 return
1249 }
1250 t.FailNow()
1251}
1252
1253// Negativef asserts that the specified element is negative
1254//

Callers 1

NegativeMethod · 0.70

Calls 3

NegativeFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…