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

test: use client interfaces provided by hcloud-go for mocking #614

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

phm07
Copy link
Contributor

@phm07 phm07 commented Nov 16, 2023

Once hetznercloud/hcloud-go#342 is merged, hcloud-go provides its own interfaces for clients. We can thus remove the ones we generated ourselves and use the provided ones instead. Also, the interfacer tool can be removed.

@phm07 phm07 self-assigned this Nov 16, 2023
@phm07 phm07 marked this pull request as ready for review November 16, 2023 12:49
@phm07 phm07 requested a review from a team as a code owner November 16, 2023 12:49
Copy link
Member

@apricote apricote left a comment

Choose a reason for hiding this comment

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

Looking good, pending the merge in hcloud-go :)

@phm07 phm07 marked this pull request as draft November 16, 2023 12:50
@phm07 phm07 force-pushed the use-hcloud-client-interfaces branch from 764747a to 9a5c5a9 Compare December 13, 2023 07:25
Copy link

codecov bot commented Dec 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (59d73f4) 31.61% compared to head (9a5c5a9) 31.61%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #614   +/-   ##
=======================================
  Coverage   31.61%   31.61%           
=======================================
  Files         171      171           
  Lines        7885     7885           
=======================================
  Hits         2493     2493           
  Misses       5108     5108           
  Partials      284      284           

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

@phm07 phm07 added the test label Dec 13, 2023
@phm07 phm07 marked this pull request as ready for review December 13, 2023 07:26
@phm07 phm07 merged commit acc2248 into main Dec 13, 2023
3 checks passed
@phm07 phm07 deleted the use-hcloud-client-interfaces branch December 13, 2023 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants