Skip to content

Commit

Permalink
Skip empty interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
hexdigest committed Jan 2, 2024
1 parent 37a94fb commit 8a7ed95
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/minimock/minimock.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ func processPackage(opts generator.Options, interfaces []types.InterfaceSpecific
}

if err := generate(opts); err != nil {
if strings.Contains(err.Error(), "interface has no methods") {
continue
}

return err
}

Expand Down

0 comments on commit 8a7ed95

Please sign in to comment.