-
Notifications
You must be signed in to change notification settings - Fork 109
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
Improve Test Coverage for Auto Sizes Plugin #1879
base: trunk
Are you sure you want to change the base?
Improve Test Coverage for Auto Sizes Plugin #1879
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## trunk #1879 +/- ##
==========================================
+ Coverage 66.70% 67.07% +0.36%
==========================================
Files 88 86 -2
Lines 7029 7009 -20
==========================================
+ Hits 4689 4701 +12
+ Misses 2340 2308 -32
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @[email protected]. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
@@ -49,7 +49,7 @@ function auto_sizes_update_image_attributes( $attr ): array { | |||
*/ | |||
function auto_sizes_update_content_img_tag( $html ): string { | |||
if ( ! is_string( $html ) ) { | |||
$html = ''; | |||
$html = '';// @codeCoverageIgnore |
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.
$html = '';// @codeCoverageIgnore | |
$html = ''; // @codeCoverageIgnore |
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.
Thanks @pravinparmar2404 for contribution.
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.
Nit-pick
@@ -16,7 +16,7 @@ | |||
*/ | |||
function auto_sizes_prime_attachment_caches( $content ): string { | |||
if ( ! is_string( $content ) ) { | |||
return ''; | |||
return '';// @codeCoverageIgnore |
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.
return '';// @codeCoverageIgnore | |
return ''; // @codeCoverageIgnore |
@@ -26,7 +26,7 @@ function auto_sizes_prime_attachment_caches( $content ): string { | |||
$class = $processor->get_attribute( 'class' ); | |||
|
|||
if ( ! is_string( $class ) ) { | |||
continue; | |||
continue;// @codeCoverageIgnore |
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.
continue;// @codeCoverageIgnore | |
continue; // @codeCoverageIgnore |
@@ -63,7 +63,7 @@ function auto_sizes_prime_attachment_caches( $content ): string { | |||
*/ | |||
function auto_sizes_filter_image_tag( $content, array $parsed_block, WP_Block $block ): string { | |||
if ( ! is_string( $content ) ) { | |||
return ''; | |||
return '';// @codeCoverageIgnore |
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.
return '';// @codeCoverageIgnore | |
return ''; // @codeCoverageIgnore |
Summary
This is part of #1789:
@covers
Annotationscc : @westonruter