Condition Coverage

blib/lib/Type/Library.pm
Criterion Covered Total %
condition 45 59 76.2


and 3 conditions

line !l l&&!r l&&r condition
52 22678 0 13 $name =~ /^\+(.+)/ and $class->has_type("$1")
66 1174 88 21416 my $f = $class->meta->{'functions'}{$name} and defined $class->meta->{'functions'}{$name}{'type'}
104 21413 0 1 $custom_type and $tag ne "types"
131 1263 21411 2 defined $type and $type->deprecated
22674 1 1 defined $type and $type->deprecated and not $globals->{'allow_deprecated'}
136 949 0 21727 not ref $into and $into ne "-lexical"
949 1254 20473 not ref $into and $into ne "-lexical" and defined $type
1254 10385 10088 not ref $into and $into ne "-lexical" and defined $type and grep(($_ eq "types"), @$tags)
199 428 0 31 @extends and not ref $type_library
366 12620 0 784 $type->has_coercion and $type->coercion->frozen

or 2 conditions

line l !l condition
188 435 24 $INC{"$file.pm"} ||= __FILE__
210 94150 536 ${"$_[0]::META";} ||= bless({}, $_[0])
234 14340 0 $meta->{'types'} ||= {}
248 55542 1826 do { "${class}::EXPORT_TAGS" }->{$_} ||= []
283 4 0 do { "${class}::EXPORT_TAGS" }->{$t} ||= []
328 1018 0 $meta->{'coercions'} ||= {}
336 688 330 do { "${class}::EXPORT_TAGS" }->{'coercions'} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
34 429 30 789 $_[0]{'base'} or $_[0]{'extends'}
93 0 2 10788 $post_method or $custom_type
106 1 0 0 $value->{'-as'} || $exportable->{'name'}
145 3 10085 0 $value->{'-as'} || $name
166 1108 0 0 $globals->{'into'} || &_croak(q[Parameter 'into' not supplied])