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

Generate traits and implementations for clients #267

Open
sfackler opened this issue Oct 6, 2023 · 0 comments
Open

Generate traits and implementations for clients #267

sfackler opened this issue Oct 6, 2023 · 0 comments

Comments

@sfackler
Copy link
Member

sfackler commented Oct 6, 2023

When generating code for clients, we currently create a struct with inherent methods. This makes it a bit annoying to unit test code that works with the client, since you need to mock out the low-level Client.

Instead, we should generate a trait and a struct that implements it. This also unifies the result with the new conjure client macro generation as a separate benefit.

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

No branches or pull requests

1 participant