Skip to content

Conversation

dennisgranath
Copy link
Contributor

[What]
Add non static alternative to GitHubClient scopeForInstallationId

[Why]
It makes it easier to mock github client within your project that is using github client

Copy link

codecov bot commented Dec 12, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (90adff7) 76.44% compared to head (f988e5e) 76.64%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #161      +/-   ##
============================================
+ Coverage     76.44%   76.64%   +0.19%     
- Complexity      286      289       +3     
============================================
  Files            42       42              
  Lines           985      989       +4     
  Branches         43       43              
============================================
+ Hits            753      758       +5     
+ Misses          207      206       -1     
  Partials         25       25              

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

Copy link
Contributor

@felix-seifert felix-seifert left a comment

Choose a reason for hiding this comment

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

Seems to be a nice approach for testing! 🚢

@felix-seifert felix-seifert merged commit 063e918 into master Dec 12, 2023
@felix-seifert felix-seifert deleted the make-github-client-easier-to-mock branch December 12, 2023 09:44
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