Branch Coverage

lib/URL/Transform.pm
Criterion Covered Total %
branch 25 50 50.0


line true false branch
167 0 6 unless ref $self->transform_function eq 'CODE'
176 0 6 unless defined $self->output_function
180 0 6 unless $parser
185 1 5 if ($content_encoding)
186 0 1 unless $supported_content_encoding{$content_encoding}
201 0 6 if $URL::Transform::EVAL_ERROR
224 64 0 if (ref $self) { }
228 0 64 if (@_ > 0)
232 0 64 exists $$self{'supported_document_types'}{$document_type} ? :
241 0 0 if (@_ > 0)
282 6 0 if ($self->can_parse_chunks) { }
301 0 7 if (defined $self->content_encoding)
321 6 1 unless $self->content_encoding
342 0 2 if defined $_link_tags
358 56 8 if (ref $v) { }
368 2 0 unless exists $link_tags{''}
400 1 2 if defined $_js_attributes
447 2 1 unless $content_encoding
450 1 0 if $content_encoding eq 'gzip'
453 0 0 if ($content_encoding eq 'deflate')
455 0 0 if (defined $raw) { }
467 0 0 unless $i and $status == $OK
496 0 1 unless $content_encoding
499 1 0 if $content_encoding eq 'gzip'
502 0 0 if $content_encoding eq 'deflate'