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

[UNIT TEST] Update mockgen and create client mock #72

Merged
merged 4 commits into from
Nov 10, 2023

Conversation

afasari
Copy link
Contributor

@afasari afasari commented Nov 9, 2023

What is this PR changing or adding?

This PR is created to handle unit tests for those who used this SDK NewClient and update mockgen version (https://github.com/golang/mock deprecated and moved to https://github.com/uber-go/mock)

@afasari
Copy link
Contributor Author

afasari commented Nov 9, 2023

Hello @longquanzheng , I want to update mockgen due to deprecation and create mock for client.go
please kindly review this pr

Copy link
Contributor

@longquanzheng longquanzheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contributions!

Copy link

codecov bot commented Nov 9, 2023

Codecov Report

Merging #72 (69adc0d) into main (02b964c) will decrease coverage by 0.27%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main      #72      +/-   ##
==========================================
- Coverage   68.90%   68.63%   -0.27%     
==========================================
  Files          29       29              
  Lines        1550     1556       +6     
==========================================
  Hits         1068     1068              
- Misses        393      397       +4     
- Partials       89       91       +2     
Files Coverage Δ
iwf/client.go 91.66% <ø> (ø)
iwf/worker_service_impl.go 63.00% <0.00%> (-2.27%) ⬇️

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

@longquanzheng
Copy link
Contributor

Can you fix the lint errors?

@afasari
Copy link
Contributor Author

afasari commented Nov 10, 2023

Can you fix the lint errors?

okay, already update go mod and fix the golangci-lint

@longquanzheng longquanzheng merged commit c17ff97 into indeedeng:main Nov 10, 2023
2 of 4 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