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

chore: PoC to include mock in SDK #106

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

majidkarimizadeh
Copy link
Collaborator

@majidkarimizadeh majidkarimizadeh commented Jan 15, 2025

This can be achieved by using https://github.com/uber-go/mock with the following options:

mockgen -source=publiccloud/api_publiccloud.go -destination=publiccloud/api_publiccloud_mock.go -package=publiccloud

I wouldn't recommend including this in the SDK itself because it introduces an external dependency, and we currently don't have a use case for it in the SDK. Additionally, it increases the SDK size unnecessarily. Third parties can generate mocks on their end if needed.
FYI: the generator that we use is not providing mock

@majidkarimizadeh majidkarimizadeh changed the title chore: include mock in sdk feat: include mock in sdk Jan 16, 2025
@majidkarimizadeh majidkarimizadeh changed the title feat: include mock in sdk chore: include mock in sdk Jan 16, 2025
@majidkarimizadeh majidkarimizadeh changed the title chore: include mock in sdk chore: PoC to include mock in SDK Jan 16, 2025
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.

1 participant