MCPcopy Create free account
hub / github.com/expr-lang/expr / Equal

Method Equal

internal/testify/assert/assertion_forward.go:124–129  ·  view source on GitHub ↗

Equal asserts that two objects are equal. a.Equal(123, 123) Pointer variable equality is determined based on the equality of the referenced values (as opposed to the memory addresses). Function equality cannot be determined and will always fail.

(expected interface{}, actual interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

122// referenced values (as opposed to the memory addresses). Function equality
123// cannot be determined and will always fail.
124func (a *Assertions) Equal(expected interface{}, actual interface{}, msgAndArgs ...interface{}) bool {
125 if h, ok := a.t.(tHelper); ok {
126 h.Helper()
127 }
128 return Equal(a.t, expected, actual, msgAndArgs...)
129}
130
131// EqualError asserts that a function returned an error (i.e. not `nil`)
132// and that it is equal to the provided error.

Callers

nothing calls this directly

Calls 2

EqualFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected