Condition Coverage

lib/Data/URIID.pm
Criterion Covered Total %
condition 16 67 23.8


and 3 conditions

line !l l&&!r l&&r condition
228 6 0 0 builtin::blessed($uri) and not $uri->isa("URI")
241 0 0 0 index(builtin::blessed($uri), __PACKAGE__) == 0 and $uri->can("ise")
310 0 0 6 defined $uri->scheme and length $uri->scheme
401 0 0 0 index(builtin::blessed($name), __PACKAGE__) == 0 and $name->can("ise")

or 2 conditions

line l !l condition
231 0 0 $secondary{'attributes'} //= {}
232 0 0 $secondary{'attributes'}{'displaycolour'} //= {"*", $displaycolour}
237 0 0 $secondary{'attributes'} //= {}
238 0 0 $secondary{'attributes'}{'displayname'} //= {"*", $displayname}
263 0 0 $secondary{'attributes'} //= {}
264 0 0 $secondary{'attributes'}{'final_file_size'} //= {"*", $data->{'properties'}{'size'}}
347 0 0 $self->{'language_tags'} //= [I18N::LangTags::implicate_supers(I18N::LangTags::Detect::detect())]
407 205 0 $name // ""
205 0 $class // ""
0 0 $class // "<undef>"
0 0 $name // "<undef>"
414 145 0 $ise // ""
145 0 $class // ""
429 27 3 $self->{'service_cache'} //= {}

or 3 conditions

line l !l&&r !l&&!r condition
276 0 0 0 $type->isa("URI") or $type->isa("Mojo::URL")
292 6 0 0 $type eq "auto" or $type eq "ise"
368 0 0 0 $self->{'ua'} //= do {
384 0 0 0 $opts{'extractor'} //= $pkg
407 205 0 0 $names{$class // ""}{$name // ""} // croak(sprintf("Invalid class or name: %s: %s", $class // "<undef>", $name // "<undef>"))
414 91 54 0 $ises{$class // ""}{$ise // ""} // croak("Invalid class or ISE")
421 6 0 205 $str =~ /^[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$/ || $str =~ /^[1-3](?:\.(?:0|[1-9][0-9]*))+$/ || $str =~ /^[a-zA-Z][a-zA-Z0-9\+\.\-]+:[^:]/
436 17 13 0 $cache->{$service} //= "Data::URIID::Service"->new("extractor", $self, "ise", $service, "online", $self->default_online)
454 0 0 0 $service_lists{$name} // croak('Invalid service list: ' . $name)