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

feat(client): added interface generation #1038

Merged
merged 2 commits into from
Sep 12, 2023

Conversation

alesbrelih
Copy link
Contributor

This way its easier to use mock autogenerators to mock clients for tests.

@codecov
Copy link

codecov bot commented Sep 12, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.01% 🎉

Comparison is base (bf48994) 72.20% compared to head (9d554ab) 72.21%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1038      +/-   ##
==========================================
+ Coverage   72.20%   72.21%   +0.01%     
==========================================
  Files         192      192              
  Lines       15027    15027              
==========================================
+ Hits        10850    10852       +2     
+ Misses       3641     3640       -1     
+ Partials      536      535       -1     

see 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@alesbrelih
Copy link
Contributor Author

I need to stop polishing template once I generate... Sorry. I fixed it now.

gen/_template/client.tmpl Show resolved Hide resolved
ogen Outdated Show resolved Hide resolved
gen/_template/client.tmpl Outdated Show resolved Hide resolved
Added Invoker interface generation for the client. This way mock generation
tools can generate mocks out of the box.
Commited generated files with the new Invoker interface.
@tdakkota tdakkota merged commit c0d60df into ogen-go:main Sep 12, 2023
15 checks passed
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