mirror of https://github.com/stretchr/testify.git
Revert "diffArguments: remove unnecessary range-for (#417)"
This reverts commit 5c861cc4a4
.
Bug was already fixed in another merge.
pull/441/head
parent
2b76a9702e
commit
34687ebd28
|
@ -718,11 +718,7 @@ func typeAndKind(v interface{}) (reflect.Type, reflect.Kind) {
|
|||
}
|
||||
|
||||
func diffArguments(expected Arguments, actual Arguments) string {
|
||||
if diffString := diff(expected, actual); diffString != "" {
|
||||
return fmt.Sprintf("Difference found in arguments:\n\n%s", diffString)
|
||||
}
|
||||
|
||||
if len(expected) != len(actual) {
|
||||
if len(expected) != len(actual) {
|
||||
return fmt.Sprintf("Provided %v arguments, mocked for %v arguments", len(expected), len(actual))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue