-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
refactor: internal/helper/image_unit_test : use table driven tests #838
refactor: internal/helper/image_unit_test : use table driven tests #838
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey! Thank You for your contribution. Nice and clean solution, minor things to be changed and it is good to be merged.
Unit tests were spread across various functions, but most of them can be organized into table driven test cases.
…ction Promot NewPTR as a general helper function .
96d3839
to
732dcd0
Compare
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #838 +/- ##
===========================================
+ Coverage 24.29% 24.31% +0.02%
===========================================
Files 62 63 +1
Lines 5994 5996 +2
===========================================
+ Hits 1456 1458 +2
Misses 4432 4432
Partials 106 106
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks, nice! Thank You for your efforts! 💯 👍
One other thing is missing here, that I should've noticed earlier, we require all commits to be signed: https://github.com/dyrector-io/dyrectorio/blob/develop/CONTRIBUTING.md#commit-signatures |
…yrector-io#838) * refactor internal/helper/image_unit_test : use table driven tests Unit tests were spread across various functions, but most of them can be organized into table driven test cases. * refactor internal/helper/image/image_unit_test.go extract utility function Promot NewPTR as a general helper function . * refactor: internal/helper/image_unit_test : add name to table tests * feat: add tests to pointer module --------- Co-authored-by: Nandor Magyar <[email protected]> Co-authored-by: Levente Orban <[email protected]>
Fixes #832
Unit tests were spread across various functions, but most of them can be organized into table driven test cases.