Condition Coverage

blib/lib/Mite/Attribute.pm.mite.pm
Criterion Covered Total %
condition 247 666 37.0


and 2 conditions

line l !l condition
114 0 112 0 require Scalar::Util and &Scalar::Util::weaken($self->{'class'})

and 3 conditions

line !l l&&!r l&&r condition
108 0 0 112 &blessed($args->{'class'}) and $args->{'class'}->isa("Mite::Package")
120 0 0 2 &blessed($args->{'_class_for_default'}) and $args->{'_class_for_default'}->isa("Mite::Package")
127 0 2 0 require Scalar::Util and &Scalar::Util::weaken($self->{'_class_for_default'})
142 0 0 174 do {
175 3 0 3 do {
200 0 0 14 !ref($to_coerce) && (!defined($to_coerce) || $to_coerce eq '' || $to_coerce eq '0' || $to_coerce eq '1')
205 0 0 14 !ref($coerced_value) && (!defined($coerced_value) || $coerced_value eq '' || $coerced_value eq '0' || $coerced_value eq '1')
226 0 169 5 not ref $value and !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
244 0 0 174 defined $value and not ref $value
305 2 3 5 do {
2 8 0 do {
315 2 0 3 defined $args->{'reader'} and not ref $args->{'reader'}
377 7 4 0 do {
7 4 0 do {
387 7 0 4 defined $args->{'writer'} and not ref $args->{'writer'}
451 5 4 2 do {
5 6 0 do {
461 5 0 4 defined $args->{'accessor'} and not ref $args->{'accessor'}
523 7 3 0 do {
7 3 0 do {
533 7 0 3 defined $args->{'clearer'} and not ref $args->{'clearer'}
597 6 4 0 do {
6 4 0 do {
607 6 0 4 defined $args->{'predicate'} and not ref $args->{'predicate'}
672 7 9 0 do {
7 9 0 do {
682 7 0 9 defined $args->{'lvalue'} and not ref $args->{'lvalue'}
748 6 1 0 do {
6 1 1 do {
761 6 0 1 defined $args->{'local_writer'} and not ref $args->{'local_writer'}
828 0 0 2 do {
834 0 0 6 do {
882 0 167 6 not ref $value and !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
898 0 172 1 not ref $value and !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
982 0 0 11 !ref($to_coerce) && (!defined($to_coerce) || $to_coerce eq '' || $to_coerce eq '0' || $to_coerce eq '1')
987 0 0 11 !ref($coerced_value) && (!defined($coerced_value) || $coerced_value eq '' || $coerced_value eq '0' || $coerced_value eq '1')
1019 0 0 9 !ref($to_coerce) && (!defined($to_coerce) || $to_coerce eq '' || $to_coerce eq '0' || $to_coerce eq '1')
1024 0 0 9 !ref($coerced_value) && (!defined($coerced_value) || $coerced_value eq '' || $coerced_value eq '0' || $coerced_value eq '1')
1056 0 0 7 !ref($to_coerce) && (!defined($to_coerce) || $to_coerce eq '' || $to_coerce eq '0' || $to_coerce eq '1')
1061 0 0 7 !ref($coerced_value) && (!defined($coerced_value) || $coerced_value eq '' || $coerced_value eq '0' || $coerced_value eq '1')
1081 0 156 17 not ref $value and !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
1112 0 0 0 do {
1175 0 7 0 do {
0 7 0 do {
1185 0 0 7 defined $args->{'trigger'} and not ref $args->{'trigger'}
1250 7 1 0 do {
7 1 0 do {
1260 0 7 1 defined $args->{'builder'} and not ref $args->{'builder'}
1319 1 5 1 do {
1 6 0 do {
1329 0 1 5 defined $args->{'clone'} and not ref $args->{'clone'}
1360 0 0 4 !ref($to_coerce) && (!defined($to_coerce) || $to_coerce eq '' || $to_coerce eq '0' || $to_coerce eq '1')
1364 0 1 3 not ref $coerced_value and !defined($coerced_value) || $coerced_value eq '' || $coerced_value eq '0' || $coerced_value eq '1'
1392 0 0 4 !ref($to_coerce) && (!defined($to_coerce) || $to_coerce eq '' || $to_coerce eq '0' || $to_coerce eq '1')
1396 0 1 3 not ref $coerced_value and !defined($coerced_value) || $coerced_value eq '' || $coerced_value eq '0' || $coerced_value eq '1'
1456 2 0 8 do {
1520 0 0 4 do {
0 4 6 do {
1535 0 2 2 defined $to_coerce and not ref $to_coerce
1583 2 0 10 do {
1640 0 0 4 do {
0 4 8 do {
1652 0 0 2 defined $coerced_value and not ref $coerced_value
1790 0 0 0 do {
0 0 2 do {
1857 0 0 0 do {
0 0 3 do {
1872 0 0 173 not $no_build and @{[] unless $meta->{'BUILD'};}
1921 0 0 0 &blessed($_[1]) and $_[1]->isa("Mite::Package")
1927 0 0 0 require Scalar::Util and &Scalar::Util::weaken($_[0]{'_class_for_default'})
1937 0 0 26 &blessed($default_value) and $default_value->isa("Mite::Package")
2009 0 0 0 do {
0 0 4 do {
2017 0 0 0 defined $_[1] and not ref $_[1]
2086 102 0 60 do {
102 60 0 do {
2097 102 0 0 defined $default_value and not ref $default_value
2167 0 0 0 do {
0 0 0 do {
2227 0 0 0 do {
0 0 0 do {
2309 0 8 0 do {
0 8 9 do {
2317 0 0 8 defined $_[1] and not ref $_[1]
2337 0 0 0 &blessed($_[1]) and $_[1]->isa("Mite::Package")
2342 0 0 0 require Scalar::Util and &Scalar::Util::weaken($_[0]{'class'})
2390 0 0 0 do {
0 0 3 do {
2398 0 0 0 defined $_[1] and not ref $_[1]
2467 163 0 0 do {
163 0 0 do {
2478 163 0 0 defined $default_value and not ref $default_value
2533 0 0 115 !ref($to_coerce) && (!defined($to_coerce) || $to_coerce eq '' || $to_coerce eq '0' || $to_coerce eq '1')
2537 0 112 3 not ref $default_value and !defined($default_value) || $default_value eq '' || $default_value eq '0' || $default_value eq '1'
2571 0 0 115 !ref($to_coerce) && (!defined($to_coerce) || $to_coerce eq '' || $to_coerce eq '0' || $to_coerce eq '1')
2575 0 112 3 not ref $default_value and !defined($default_value) || $default_value eq '' || $default_value eq '0' || $default_value eq '1'
2596 0 0 0 do {
2626 0 0 27 do {
2657 0 0 0 not ref $_[1] and !defined($_[1]) || $_[1] eq '' || $_[1] eq '0' || $_[1] eq '1'
2676 0 0 243 &blessed($_[1]) and $_[1]->isa("Mite::Package")
2774 0 0 0 !ref($to_coerce) && (!defined($to_coerce) || $to_coerce eq '' || $to_coerce eq '0' || $to_coerce eq '1')
2778 0 0 0 not ref $value and !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
2808 0 0 0 !ref($to_coerce) && (!defined($to_coerce) || $to_coerce eq '' || $to_coerce eq '0' || $to_coerce eq '1')
2812 0 0 0 not ref $value and !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
2906 0 0 0 do {
2984 0 0 0 do {
3042 0 0 0 do {
0 0 0 do {
3057 0 0 0 defined $to_coerce and not ref $to_coerce
3099 0 0 0 do {
3148 0 0 0 do {
0 0 0 do {
3159 0 0 0 defined $value and not ref $value
3263 0 0 0 do {
3295 0 0 107 do {
3333 0 0 4 defined $_[1] and not ref $_[1]
3370 0 0 4 not ref $_[1] and !defined($_[1]) || $_[1] eq '' || $_[1] eq '0' || $_[1] eq '1'
3426 0 0 0 do {
0 0 1 do {
3434 0 0 0 defined $_[1] and not ref $_[1]
3503 165 0 0 do {
165 0 0 do {
3514 165 0 0 defined $default_value and not ref $default_value
3539 0 0 0 not ref $_[1] and !defined($_[1]) || $_[1] eq '' || $_[1] eq '0' || $_[1] eq '1'
3595 0 0 0 do {
0 0 9 do {
3603 0 0 0 defined $_[1] and not ref $_[1]
3672 157 0 0 do {
157 0 0 do {
3683 157 0 0 defined $default_value and not ref $default_value
3709 0 0 0 do {
3773 0 0 0 do {
0 0 4 do {
3781 0 0 0 defined $_[1] and not ref $_[1]
3850 163 0 0 do {
163 0 0 do {
3861 163 0 0 defined $default_value and not ref $default_value
3922 0 0 0 do {
0 0 3 do {
3930 0 0 0 defined $_[1] and not ref $_[1]
3999 112 0 51 do {
112 51 0 do {
4010 112 0 0 defined $default_value and not ref $default_value
4045 0 0 0 !ref($to_coerce) && (!defined($to_coerce) || $to_coerce eq '' || $to_coerce eq '0' || $to_coerce eq '1')
4049 0 0 0 not ref $value and !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
4079 0 0 0 !ref($to_coerce) && (!defined($to_coerce) || $to_coerce eq '' || $to_coerce eq '0' || $to_coerce eq '1')
4083 0 0 0 not ref $value and !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
4153 0 0 0 do {
0 0 7 do {
4161 0 0 0 defined $_[1] and not ref $_[1]
4213 0 0 0 not ref $_[1] and !defined($_[1]) || $_[1] eq '' || $_[1] eq '0' || $_[1] eq '1'
4269 0 0 0 do {
0 0 4 do {
4277 0 0 0 defined $_[1] and not ref $_[1]
4346 159 0 3 do {
159 3 0 do {
4357 159 0 0 defined $default_value and not ref $default_value
4382 0 0 0 $INC{'Moose/Util.pm'} and my $meta = Moose::Util::find_meta(ref $self || $self)
4385 0 0 0 $meta->can("does_role") and $meta->does_role($role)

or 3 conditions

line l !l&&r !l&&!r condition
60 0 73 0 ref $class || $class
79 101 73 0 $Mite::META{$class} ||= $class->__META__
226 171 3 0 !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
318 5 3 2 do {
390 0 4 7 do {
464 2 4 5 do {
536 0 3 7 do {
609 0 4 6 do {
685 0 9 7 do {
763 1 1 6 do {
882 167 6 0 !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
898 172 1 0 !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
948 5 56 34 do {
56 29 5 do {
29 1 4 do {
1 1 3 do {
1081 159 14 0 !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
1187 0 7 0 do {
1262 0 1 7 do {
1336 1 5 1 do {
5 1 0 do {
1364 2 2 0 !defined($coerced_value) || $coerced_value eq '' || $coerced_value eq '0' || $coerced_value eq '1'
1396 2 2 0 !defined($coerced_value) || $coerced_value eq '' || $coerced_value eq '0' || $coerced_value eq '1'
1456 8 2 0 do {
1583 10 2 0 do {
1888 173 0 0 $Mite::META{$class} ||= $class->__META__
1895 50 0 0 ref $self || $self
1896 50 0 0 $Mite::META{$class} ||= $class->__META__
2014 4 0 0 do {
2094 60 0 102 do {
2314 9 8 0 do {
2395 3 0 0 do {
2475 0 0 163 do {
2537 112 3 0 !defined($default_value) || $default_value eq '' || $default_value eq '0' || $default_value eq '1'
2575 112 3 0 !defined($default_value) || $default_value eq '' || $default_value eq '0' || $default_value eq '1'
2657 0 0 0 !defined($_[1]) || $_[1] eq '' || $_[1] eq '0' || $_[1] eq '1'
2743 0 3 0 not defined $_[1] or do {
3 0 0 not defined $_[1] or do {
0 0 0 ref $_[1] eq "SCALAR" or ref $_[1] eq "REF"
3 0 0 not defined $_[1] or do {
0 0 0 not defined $_[1] or do {
2778 0 0 0 !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
2812 0 0 0 !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
2984 0 0 0 do {
3099 0 0 0 do {
3370 0 4 0 !defined($_[1]) || $_[1] eq '' || $_[1] eq '0' || $_[1] eq '1'
3431 1 0 0 do {
3511 0 0 165 do {
3539 0 0 0 !defined($_[1]) || $_[1] eq '' || $_[1] eq '0' || $_[1] eq '1'
3600 9 0 0 do {
3680 0 0 157 do {
3778 4 0 0 do {
3858 0 0 163 do {
3927 3 0 0 do {
4007 51 0 112 do {
4049 0 0 0 !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
4083 0 0 0 !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
4158 7 0 0 do {
4213 0 0 0 !defined($_[1]) || $_[1] eq '' || $_[1] eq '0' || $_[1] eq '1'
4274 4 0 0 do {
4354 3 0 159 do {
4382 0 0 0 ref $self || $self