Skip to content

Commit

Permalink
ignore notifier mock due to golang/mock#658
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandreLamarre committed Jun 16, 2022
1 parent c8525ca commit 6ba13fb
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,14 @@ func init() {
Dest: "pkg/test/mock/rbac/rbac.go",
Types: []string{"Provider"},
},
{
Source: "pkg/rules/types.go",
Dest: "pkg/test/mock/rules/rules.go",
Types: []string{"RuleFinder"},
},
//FIXME: github.com/golang/google/mock doesn't fully work with generic interfaces,
// For now need to manually fix some of the generated code
// Uncomment when https://github.com/golang/mock/issues/658 is fixed
// {
// Source: "pkg/util/notifier/types.go",
// Dest: "pkg/test/mock/notifier/notifier.go",
// Types: []string{"UpdateNotifier", "Finder", "Clonable"},
// },
{
Source: "pkg/storage/stores.go",
Dest: "pkg/test/mock/storage/stores.go",
Expand Down

0 comments on commit 6ba13fb

Please sign in to comment.