Branch Coverage

blib/lib/HTML/DeferableCSS.pm
Criterion Covered Total %
branch 46 52 88.4


line true false branch
82 6 32 if (not $base) { }
4 28 elsif ($base =~ m[^(\w+:)?//]) { }
89 5 23 if $base eq '1'
91 25 3 $min ? :
96 4 24 unless ($file)
167 1 1 if ($self->simple) { }
194 6 2 if $level eq 'error'
213 1 2 unless scalar keys %$files
222 0 28 unless $file //= $self->_get_file($name)
223 20 8 if (defined $file->[0]) { }
225 2 18 if $self->has_asset_id
226 1 19 if ($self->use_cdn_links and $self->has_cdn_links)
239 17 4 if (my $href = $self->href($name, $file)) { }
250 0 9 unless $file //= $self->_get_file($name)
251 8 1 if (my $path = $file->[0]) { }
252 6 2 if ($file->[2])
269 0 8 unless my $file = $self->_get_file($name)
270 3 5 if ($file->[0] and $file->[2] <= $self->inline_max) { }
286 0 7 unless my $file = $self->_get_file($name)
287 1 6 if ($file->[0] and $file->[2] <= $self->inline_max) { }
2 4 elsif ($self->defer_css) { }
300 2 4 if (@deferred)
303 1 1 if $self->include_noscript
306 1 1 unless $self->simple
317 0 37 unless (defined $name)
321 37 0 if (my $file = $self->css_files->{$name}) { }