Skip to content

Commit

Permalink
more similar
Browse files Browse the repository at this point in the history
  • Loading branch information
arjun-1 committed Oct 27, 2024
1 parent ea7129e commit 05f87c0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions mock/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -1227,16 +1227,14 @@ func assertOpts(expected, actual interface{}) (expectedFmt, actualFmt string) {
}

for i := 0; i < expectedOpts.Len(); i++ {
expectedOpt := expectedOpts.Index(i).Interface()
actualOpt := actualOpts.Index(i).Interface()

if !isFuncSame(expectedFuncs[i], actualFuncs[i]) {
expectedFmt = expectedNames[i]
actualFmt = actualNames[i]
return
}
}

for i := 0; i < expectedOpts.Len(); i++ {
expectedOpt := expectedOpts.Index(i).Interface()
actualOpt := actualOpts.Index(i).Interface()

ot := reflect.TypeOf(expectedOpt)
var expectedValues []reflect.Value
Expand Down

0 comments on commit 05f87c0

Please sign in to comment.