-
-
Notifications
You must be signed in to change notification settings - Fork 888
Save as extensions #1256
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
Save as extensions #1256
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1256 +/- ##
==========================================
+ Coverage 82.61% 82.68% +0.07%
==========================================
Files 697 697
Lines 30529 30589 +60
Branches 3445 3460 +15
==========================================
+ Hits 25221 25294 +73
+ Misses 4603 4593 -10
+ Partials 705 702 -3
Continue to review full report at Codecov.
|
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.
Good job, looks good after a quick review! Thanks!
It's not your fault that there is no existing precedent to extensively test this type of boilerplate, but I'm a bit hesitant if it's ok to add this huge amount of uncovered methods.
@pekspro if I provide some guidance are you OK with adding the tests as well?
|
Sure @antonfirsov, I would like to see some unit test too on this :-) Just give me some guidance and I fix it :-) As I see it, it would be nice if the extension methods worked with an interface instead of Image. But it is quit trick right now because of lines like this:
|
|
@antonfirsov , what if I created unit test like this? |
|
@pekspro perfect, thanks! Go ahead! |
|
Perfect @pekspro Thanks so much for doing this! |
Prerequisites
Description
This add several methods for saving images. Id addresses #1255.
There were no unit test for the existing extensions so I did not ceate anyone for this either. But I did make sure that all extensions for all file formats produced identical files with this code: