Skip to content

Commit

Permalink
review comments (dolmen)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianrose14 committed Jul 25, 2023
1 parent fd78cd3 commit 92926b6
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions mock/mock.go
Expand Up @@ -592,10 +592,8 @@ func AssertExpectationsForObjects(t TestingT, testObjects ...interface{}) bool {
// AssertExpectations asserts that everything specified with On and Return was
// in fact called as expected. Calls may have occurred in any order.
func (m *Mock) AssertExpectations(t TestingT) bool {
if s, ok := t.(tSkipped); ok {
if s.Skipped() {
return true
}
if s, ok := t.(interface{ Skipped() bool }); ok && s.Skipped() {
return true
}
if h, ok := t.(tHelper); ok {
h.Helper()
Expand Down Expand Up @@ -1168,10 +1166,6 @@ type tHelper interface {
Helper()
}

type tSkipped interface {
Skipped() bool
}

func assertOpts(expected, actual interface{}) (expectedFmt, actualFmt string) {
expectedOpts := reflect.ValueOf(expected)
actualOpts := reflect.ValueOf(actual)
Expand Down

0 comments on commit 92926b6

Please sign in to comment.