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

Support embedded interfaces in cmg #277

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

douglaswth
Copy link
Member

Before, Clue Mock Generator would not include the methods from embedded interfaces, for example:

package something

import (
    "goa.design/clue/health"
)

type Client interface {
    Get() (string, error)

    health.Pinger
}

Would not include the methods from health.Pinger in the generated mock. Now it will!

Before, Clue Mock Generator would not include the methods from embedded
interfaces, for example:

```golang
package something

import (
    "goa.design/clue/health"
)

type Client interface {
    Get() (string, error)

    health.Pinger
}
```

Would not include the methods from `health.Pinger` in the generated
mock. Now it will!
@codecov-commenter
Copy link

Codecov Report

Merging #277 (dee734d) into main (13c6d8b) will increase coverage by 0.09%.
The diff coverage is 100.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##             main     #277      +/-   ##
==========================================
+ Coverage   94.33%   94.42%   +0.09%     
==========================================
  Files          43       43              
  Lines        2187     2225      +38     
==========================================
+ Hits         2063     2101      +38     
  Misses         91       91              
  Partials       33       33              
Flag Coverage Δ
micro 94.42% <100.00%> (+0.09%) ⬆️

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

Files Changed Coverage Δ
mock/cmd/cmg/pkg/parse/interface.go 100.00% <100.00%> (ø)
mock/cmd/cmg/pkg/parse/method.go 100.00% <100.00%> (ø)
mock/cmd/cmg/pkg/parse/value.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 4d1dc69 into main Aug 29, 2023
@douglaswth douglaswth deleted the douglaswth/support-cmg-interface-embedding branch August 29, 2023 16:34
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.

2 participants