Skip to content

Commit

Permalink
add integration test, commit new fake
Browse files Browse the repository at this point in the history
  • Loading branch information
joefitzgerald committed Jul 8, 2019
1 parent a6be7a4 commit e825033
Show file tree
Hide file tree
Showing 3 changed files with 154 additions and 1 deletion.
151 changes: 151 additions & 0 deletions fixtures/fixturesfakes/fake_inline_struct_params.go

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

3 changes: 2 additions & 1 deletion fixtures/inline_struct_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import (
"time"
)

type InlineInterface interface {
//counterfeiter:generate . InlineStructParams
type InlineStructParams interface {
DoSomething(ctx context.Context, body struct {
SomeString string
SomeStringPointer *string
Expand Down
1 change: 1 addition & 0 deletions integration/roundtrip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ func runTests(useGopath bool, t *testing.T, when spec.G, it spec.S) {
t("ImportsGoHyphenPackage", "imports_go_hyphen_package.go", "", filepath.Join("go-hyphenpackage", "fixture.go"))
t("FirstInterface", "multiple_interfaces.go", "")
t("SecondInterface", "multiple_interfaces.go", "")
t("InlineStructParams", "inline_struct_params.go", "")
t("RequestFactory", "request_factory.go", "")
t("ReusesArgTypes", "reuses_arg_types.go", "")
t("SomethingWithForeignInterface", "something_remote.go", "", filepath.Join("aliased_package", "in_aliased_package.go"))
Expand Down

0 comments on commit e825033

Please sign in to comment.