Condition Coverage

blib/lib/Type/Utils.pm
Criterion Covered Total %
condition 46 75 61.3


and 3 conditions

line !l l&&!r l&&r condition
53 2 0 1 $lib->isa("Exporter") and my $types = do {
65 21 0 1 $moose->has_coercion && @{[] unless $moose->coercion->type_coercion_map;}
117 186 1 1 @_ == 2 and $_[0] =~ /^_*[A-Z]/
187 0 1 @_ == 2 and $_[0] =~ /^_*[A-Z]/ and $_[1] =~ /^[0-9]+$/
286 45 0 45 Types::TypeTiny::is_HashLike($_[0]) and not is_TypeTiny($_[0])
489 0 0 9 my $assume = $self->{'~~assume'} and $_[0] =~ /[A-Z_a-z][0-9A-Z_a-z]*(?:::[0-9A-Z_a-z]+)*/
556 3 3 3 $meta and $meta->isa("Class::MOP::Module")
3 0 3 $meta and $meta->isa("Mouse::Meta::Module")

or 2 conditions

line l !l condition
128 184 152 $opts{'_caller_level'} || 0
138 0 0 ref $opts{'parent'} || 'non-reference scalar'
150 184 24 delete $opts{'bless'} || 'Type::Tiny'
290 0 45 $opts{'_caller_level'} || 0
293 0 45 delete $opts{'bless'} || 'Type::Coercion'
584 2 108 $opts{'fallback'} || [('lookup_via_moose', 'lookup_via_mouse'), $opts{'does'} ? 'make_role_type' : 'make_class_type']

or 3 conditions

line l !l&&r !l&&!r condition
53 92 17 6 $lib->isa("Type::Library") or $lib eq "Types::TypeTiny"
304 42 0 0 $meta->get_type($_) || $_
321 43 0 0 $meta->get_type($_) || $_
325 84 0 0 $meta->get_type($_) || $_
552 0 3 1 $meta ||= Moose::Util::find_meta($self->{'~~chained'})
553 1 3 0 $meta ||= Mouse::Util::find_meta($self->{'~~chained'})
576 101 9 0 $dwimmer ||= do {
643 1 1 2 $is_cache{$caller}{$uniq} || do {
1 1 0 $is_cache{$caller}{$uniq} ||= $type
2 2 0 $is_cache_coderef{$caller}{$uniq} ||= $type->compiled_check
653 0 0 1 $is_cache{$caller}{$uniq} || do {
0 0 0 $is_cache{$caller}{$uniq} ||= $type
2 0 0 $is_cache_coderef{$caller}{$uniq} ||= $type->compiled_check