Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mock generation of function pointer signature parameters #227

Merged

Conversation

douglaswth
Copy link
Member

Before this fix an interface method with a parameter such as func(goa.Endpoint) would be generated as
func(goa.design/goa/v3/pkg.Endpoint) instead of something that is actually valid Go.

Before this fix an interface method with a parameter such as
`func(goa.Endpoint)` would be generated as
`func(goa.design/goa/v3/pkg.Endpoint)` instead of something that is
actually valid Go.
@douglaswth douglaswth requested a review from raphael May 3, 2023 21:47
@codecov-commenter
Copy link

Codecov Report

Merging #227 (2da56a3) into main (6c3314f) will increase coverage by 0.00%.
The diff coverage is 100.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@           Coverage Diff           @@
##             main     #227   +/-   ##
=======================================
  Coverage   94.31%   94.32%           
=======================================
  Files          43       43           
  Lines        2183     2186    +3     
=======================================
+ Hits         2059     2062    +3     
  Misses         91       91           
  Partials       33       33           
Flag Coverage Δ
micro 94.32% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
mock/cmd/cmg/pkg/generate/type.go 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@douglaswth douglaswth merged commit f4fd9e7 into main May 4, 2023
1 check passed
@douglaswth douglaswth deleted the douglaswth/fix-mock-function-pointer-signature-generation branch May 4, 2023 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants