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

Function Condition

internal/testify/assert/assertions.go:1178–1187  ·  view source on GitHub ↗

Condition uses a Comparison to assert a complex condition.

(t TestingT, comp Comparison, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

1176
1177// Condition uses a Comparison to assert a complex condition.
1178func Condition(t TestingT, comp Comparison, msgAndArgs ...interface{}) bool {
1179 if h, ok := t.(tHelper); ok {
1180 h.Helper()
1181 }
1182 result := comp()
1183 if !result {
1184 Fail(t, "Condition failed!", msgAndArgs...)
1185 }
1186 return result
1187}
1188
1189// PanicTestFunc defines a func that should be passed to the assert.Panics and assert.NotPanics
1190// methods, and represents a simple func that takes no arguments, and returns nothing.

Callers 4

ConditionFunction · 0.92
ConditionfFunction · 0.70
TestConditionFunction · 0.70
ConditionMethod · 0.70

Calls 2

FailFunction · 0.70
HelperMethod · 0.45

Tested by 1

TestConditionFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…