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

Function isArgsEqual

mock/mock.go:742–752  ·  view source on GitHub ↗

isArgsEqual compares arguments

(expected Arguments, args []interface{})

Source from the content-addressed store, hash-verified

740
741// isArgsEqual compares arguments
742func isArgsEqual(expected Arguments, args []interface{}) bool {
743 if len(expected) != len(args) {
744 return false
745 }
746 for i, v := range args {
747 if !reflect.DeepEqual(expected[i], v) {
748 return false
749 }
750 }
751 return true
752}
753
754func (m *Mock) methodWasCalled(methodName string, expected []interface{}) bool {
755 for _, call := range m.calls() {

Callers 2

IsMethodCallableMethod · 0.85
TestIsArgsEqualFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsArgsEqualFunction · 0.68