Skip to content

Commit

Permalink
Merge conflict resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
LandonTClipp committed May 24, 2022
1 parent ed55a47 commit 35bfca3
Show file tree
Hide file tree
Showing 7 changed files with 270 additions and 3 deletions.
42 changes: 42 additions & 0 deletions mocks/pkg/fixtures/EmbeddedGet.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions mocks/pkg/fixtures/GetGeneric.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions mocks/pkg/fixtures/GetInt.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

96 changes: 96 additions & 0 deletions mocks/pkg/fixtures/RequesterGenerics.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions mocks/pkg/fixtures/constraints/Integer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions mocks/pkg/fixtures/constraints/Signed.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions pkg/generator.go
Expand Up @@ -814,9 +814,8 @@ type {{ .ConstructorTestingInterfaceName }} interface {
}
// {{ .ConstructorName }} creates a new instance of {{ .MockName }}. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func {{ .ConstructorName }}{{ .TypeConstraint }}(t {{ .ConstructorTestingInterfaceName }}) *{{ .MockName }}{{ .TypeParams }} {
func {{ .ConstructorName }}{{ .TypeConstraint }}(t {{ .ConstructorTestingInterfaceName }}) *{{ .MockName }}{{ .InstantiatedTypeString }} {
mock := &{{ .MockName }}{{ .InstantiatedTypeString }}{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
Expand All @@ -833,7 +832,6 @@ func {{ .ConstructorName }}{{ .TypeConstraint }}(t {{ .ConstructorTestingInterfa
InstantiatedTypeString string
MockName string
TypeConstraint string
TypeParams string
}{
ConstructorName: constructorName,
ConstructorTestingInterfaceName: constructorName + "T",
Expand Down

0 comments on commit 35bfca3

Please sign in to comment.