-
Notifications
You must be signed in to change notification settings - Fork 15
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: remove unexported method v3 Service interface #150
fix: remove unexported method v3 Service interface #150
Conversation
Having an unexported method in an interface makes it not possible to implement from a different package e.g. Trying to create a mock implementation leads to this error: Type cannot implement 'Service' as it has a non-exported method and is defined in a different package
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #150 +/- ##
=======================================
Coverage 54.30% 54.30%
=======================================
Files 20 20
Lines 1799 1799
=======================================
Hits 977 977
Misses 822 822 ☔ View full report in Codecov by Sentry. |
@yannickstruyf3 @tuxtof FYI. (For some reason I can't add you as reviewers) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
this method exists in the same file? listServiceGroups(ctx context.Context, getEntitiesRequest *DSMetadata) (*ServiceGroupListResponse, error) -- 2190 | func (op Operations) listServiceGroups(ctx context.Context, getEntitiesRequest *DSMetadata) (*ServiceGroupListResponse,… we can make it capital letter. just want to confirm if it needs to be exported. am sure no one might be using it then outside |
/lgtm |
8724a6b
into
nutanix-cloud-native:main
Having an unexported method in an interface makes it not possible to implement from a different package
e.g. Trying to create a mock implementation leads to this error: