MCPcopy
hub / github.com/duke-git/lancet / EqualValues

Method EqualValues

internal/assert.go:64–68  ·  view source on GitHub ↗

EqualValues asserts that two objects are equal or convertable to the same types and equal. https://github.com/stretchr/testify/assert/assertions.go

(expected, actual any)

Source from the content-addressed store, hash-verified

62// EqualValues asserts that two objects are equal or convertable to the same types and equal.
63// https://github.com/stretchr/testify/assert/assertions.go
64func (a *Assert) EqualValues(expected, actual any) {
65 if !objectsAreEqualValues(expected, actual) {
66 makeTestFailed(a.T, a.CaseName, expected, actual)
67 }
68}
69
70func objectsAreEqualValues(expected, actual interface{}) bool {
71 if objectsAreEqual(expected, actual) {

Callers 9

TestSortByFunction · 0.95
TestToInterfaceFunction · 0.95
TestAssertFunction · 0.95
TestBaseTypeFunction · 0.95
TestStream_ToMapFunction · 0.95
TestPercentFunction · 0.95
TestCosFunction · 0.95
TestSinFunction · 0.95
TestLogFunction · 0.95

Calls 2

makeTestFailedFunction · 0.85
objectsAreEqualValuesFunction · 0.70

Tested by 9

TestSortByFunction · 0.76
TestToInterfaceFunction · 0.76
TestAssertFunction · 0.76
TestBaseTypeFunction · 0.76
TestStream_ToMapFunction · 0.76
TestPercentFunction · 0.76
TestCosFunction · 0.76
TestSinFunction · 0.76
TestLogFunction · 0.76