Condition Coverage

blib/lib/Mite/Attribute.pm.mite.pm
Criterion Covered Total %
condition 243 645 37.6


and 2 conditions

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

and 3 conditions

line !l l&&!r l&&r condition
106 0 0 110 &blessed($args->{'class'}) and $args->{'class'}->isa("Mite::Package")
118 0 0 3 &blessed($args->{'_class_for_default'}) and $args->{'_class_for_default'}->isa("Mite::Package")
125 0 3 0 require Scalar::Util and &Scalar::Util::weaken($self->{'_class_for_default'})
140 0 0 162 do {
173 3 0 3 do {
198 0 0 15 !ref($to_coerce) && (!defined($to_coerce) || $to_coerce eq '' || $to_coerce eq '0' || $to_coerce eq '1')
203 0 0 15 !ref($coerced_value) && (!defined($coerced_value) || $coerced_value eq '' || $coerced_value eq '0' || $coerced_value eq '1')
224 0 159 3 not ref $value and !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
242 0 0 162 defined $value and not ref $value
302 2 3 6 do {
2 9 0 do {
312 2 0 3 defined $args->{'reader'} and not ref $args->{'reader'}
374 8 4 0 do {
8 4 0 do {
384 8 0 4 defined $args->{'writer'} and not ref $args->{'writer'}
448 7 4 1 do {
7 5 0 do {
458 7 0 4 defined $args->{'accessor'} and not ref $args->{'accessor'}
520 8 3 0 do {
8 3 0 do {
530 8 0 3 defined $args->{'clearer'} and not ref $args->{'clearer'}
594 7 4 0 do {
7 4 0 do {
604 7 0 4 defined $args->{'predicate'} and not ref $args->{'predicate'}
669 8 5 0 do {
8 5 0 do {
679 8 0 5 defined $args->{'lvalue'} and not ref $args->{'lvalue'}
745 7 1 0 do {
7 1 1 do {
758 7 0 1 defined $args->{'local_writer'} and not ref $args->{'local_writer'}
825 0 0 2 do {
831 0 0 6 do {
879 0 155 6 not ref $value and !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
963 0 0 12 !ref($to_coerce) && (!defined($to_coerce) || $to_coerce eq '' || $to_coerce eq '0' || $to_coerce eq '1')
968 0 0 12 !ref($coerced_value) && (!defined($coerced_value) || $coerced_value eq '' || $coerced_value eq '0' || $coerced_value eq '1')
1000 0 0 10 !ref($to_coerce) && (!defined($to_coerce) || $to_coerce eq '' || $to_coerce eq '0' || $to_coerce eq '1')
1005 0 0 10 !ref($coerced_value) && (!defined($coerced_value) || $coerced_value eq '' || $coerced_value eq '0' || $coerced_value eq '1')
1037 0 0 8 !ref($to_coerce) && (!defined($to_coerce) || $to_coerce eq '' || $to_coerce eq '0' || $to_coerce eq '1')
1042 0 0 8 !ref($coerced_value) && (!defined($coerced_value) || $coerced_value eq '' || $coerced_value eq '0' || $coerced_value eq '1')
1062 0 145 16 not ref $value and !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
1093 0 0 0 do {
1156 0 6 0 do {
0 6 0 do {
1166 0 0 6 defined $args->{'trigger'} and not ref $args->{'trigger'}
1231 7 1 0 do {
7 1 0 do {
1241 0 7 1 defined $args->{'builder'} and not ref $args->{'builder'}
1300 1 5 1 do {
1 6 0 do {
1310 0 1 5 defined $args->{'clone'} and not ref $args->{'clone'}
1341 0 0 4 !ref($to_coerce) && (!defined($to_coerce) || $to_coerce eq '' || $to_coerce eq '0' || $to_coerce eq '1')
1345 0 1 3 not ref $coerced_value and !defined($coerced_value) || $coerced_value eq '' || $coerced_value eq '0' || $coerced_value eq '1'
1373 0 0 4 !ref($to_coerce) && (!defined($to_coerce) || $to_coerce eq '' || $to_coerce eq '0' || $to_coerce eq '1')
1377 0 1 3 not ref $coerced_value and !defined($coerced_value) || $coerced_value eq '' || $coerced_value eq '0' || $coerced_value eq '1'
1437 2 0 7 do {
1501 0 0 4 do {
0 4 5 do {
1516 0 2 2 defined $to_coerce and not ref $to_coerce
1564 2 0 9 do {
1621 0 0 4 do {
0 4 7 do {
1633 0 0 2 defined $coerced_value and not ref $coerced_value
1771 0 0 0 do {
0 0 2 do {
1838 0 0 0 do {
0 0 3 do {
1853 0 0 161 not $no_build and @{[] unless $meta->{'BUILD'};}
1902 0 0 0 &blessed($_[1]) and $_[1]->isa("Mite::Package")
1908 0 0 0 require Scalar::Util and &Scalar::Util::weaken($_[0]{'_class_for_default'})
1918 0 0 26 &blessed($default_value) and $default_value->isa("Mite::Package")
1990 0 0 0 do {
0 0 4 do {
1998 0 0 0 defined $_[1] and not ref $_[1]
2067 93 0 56 do {
93 56 0 do {
2078 93 0 0 defined $default_value and not ref $default_value
2148 0 0 0 do {
0 0 0 do {
2208 0 0 0 do {
0 0 0 do {
2290 0 8 0 do {
0 8 9 do {
2298 0 0 8 defined $_[1] and not ref $_[1]
2318 0 0 0 &blessed($_[1]) and $_[1]->isa("Mite::Package")
2323 0 0 0 require Scalar::Util and &Scalar::Util::weaken($_[0]{'class'})
2371 0 0 0 do {
0 0 3 do {
2379 0 0 0 defined $_[1] and not ref $_[1]
2448 150 0 0 do {
150 0 0 do {
2459 150 0 0 defined $default_value and not ref $default_value
2514 0 0 116 !ref($to_coerce) && (!defined($to_coerce) || $to_coerce eq '' || $to_coerce eq '0' || $to_coerce eq '1')
2518 0 113 3 not ref $default_value and !defined($default_value) || $default_value eq '' || $default_value eq '0' || $default_value eq '1'
2552 0 0 116 !ref($to_coerce) && (!defined($to_coerce) || $to_coerce eq '' || $to_coerce eq '0' || $to_coerce eq '1')
2556 0 113 3 not ref $default_value and !defined($default_value) || $default_value eq '' || $default_value eq '0' || $default_value eq '1'
2577 0 0 0 do {
2607 0 0 28 do {
2638 0 0 0 not ref $_[1] and !defined($_[1]) || $_[1] eq '' || $_[1] eq '0' || $_[1] eq '1'
2657 0 0 245 &blessed($_[1]) and $_[1]->isa("Mite::Package")
2755 0 0 0 !ref($to_coerce) && (!defined($to_coerce) || $to_coerce eq '' || $to_coerce eq '0' || $to_coerce eq '1')
2759 0 0 0 not ref $value and !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
2789 0 0 0 !ref($to_coerce) && (!defined($to_coerce) || $to_coerce eq '' || $to_coerce eq '0' || $to_coerce eq '1')
2793 0 0 0 not ref $value and !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
2887 0 0 0 do {
2965 0 0 0 do {
3023 0 0 0 do {
0 0 0 do {
3038 0 0 0 defined $to_coerce and not ref $to_coerce
3080 0 0 0 do {
3129 0 0 0 do {
0 0 0 do {
3140 0 0 0 defined $value and not ref $value
3244 0 0 0 do {
3276 0 0 108 do {
3314 0 0 4 defined $_[1] and not ref $_[1]
3347 0 0 4 not ref $_[1] and !defined($_[1]) || $_[1] eq '' || $_[1] eq '0' || $_[1] eq '1'
3403 0 0 0 do {
0 0 1 do {
3411 0 0 0 defined $_[1] and not ref $_[1]
3480 152 0 0 do {
152 0 0 do {
3491 152 0 0 defined $default_value and not ref $default_value
3552 0 0 0 do {
0 0 5 do {
3560 0 0 0 defined $_[1] and not ref $_[1]
3629 148 0 0 do {
148 0 0 do {
3640 148 0 0 defined $default_value and not ref $default_value
3666 0 0 0 do {
3730 0 0 0 do {
0 0 4 do {
3738 0 0 0 defined $_[1] and not ref $_[1]
3807 150 0 0 do {
150 0 0 do {
3818 150 0 0 defined $default_value and not ref $default_value
3879 0 0 0 do {
0 0 3 do {
3887 0 0 0 defined $_[1] and not ref $_[1]
3956 97 0 53 do {
97 53 0 do {
3967 97 0 0 defined $default_value and not ref $default_value
4002 0 0 0 !ref($to_coerce) && (!defined($to_coerce) || $to_coerce eq '' || $to_coerce eq '0' || $to_coerce eq '1')
4006 0 0 0 not ref $value and !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
4036 0 0 0 !ref($to_coerce) && (!defined($to_coerce) || $to_coerce eq '' || $to_coerce eq '0' || $to_coerce eq '1')
4040 0 0 0 not ref $value and !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
4110 0 0 0 do {
0 0 6 do {
4118 0 0 0 defined $_[1] and not ref $_[1]
4170 0 0 0 not ref $_[1] and !defined($_[1]) || $_[1] eq '' || $_[1] eq '0' || $_[1] eq '1'
4226 0 0 0 do {
0 0 4 do {
4234 0 0 0 defined $_[1] and not ref $_[1]
4303 146 0 3 do {
146 3 0 do {
4314 146 0 0 defined $default_value and not ref $default_value

or 3 conditions

line l !l&&r !l&&!r condition
58 0 72 0 ref $class || $class
77 90 72 0 $Mite::META{$class} ||= $class->__META__
224 160 2 0 !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
315 6 3 2 do {
387 0 4 8 do {
461 1 4 7 do {
533 0 3 8 do {
606 0 4 7 do {
682 0 5 8 do {
760 1 1 7 do {
879 155 6 0 !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
929 5 43 37 do {
43 33 4 do {
33 1 3 do {
1 1 2 do {
1062 148 13 0 !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
1168 0 6 0 do {
1243 0 1 7 do {
1317 1 5 1 do {
5 1 0 do {
1345 2 2 0 !defined($coerced_value) || $coerced_value eq '' || $coerced_value eq '0' || $coerced_value eq '1'
1377 2 2 0 !defined($coerced_value) || $coerced_value eq '' || $coerced_value eq '0' || $coerced_value eq '1'
1437 7 2 0 do {
1564 9 2 0 do {
1869 161 0 0 $Mite::META{$class} ||= $class->__META__
1876 37 0 0 ref $self || $self
1877 37 0 0 $Mite::META{$class} ||= $class->__META__
1995 4 0 0 do {
2075 56 0 93 do {
2295 9 8 0 do {
2376 3 0 0 do {
2456 0 0 150 do {
2518 113 3 0 !defined($default_value) || $default_value eq '' || $default_value eq '0' || $default_value eq '1'
2556 113 3 0 !defined($default_value) || $default_value eq '' || $default_value eq '0' || $default_value eq '1'
2638 0 0 0 !defined($_[1]) || $_[1] eq '' || $_[1] eq '0' || $_[1] eq '1'
2724 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 {
2759 0 0 0 !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
2793 0 0 0 !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
2965 0 0 0 do {
3080 0 0 0 do {
3347 0 4 0 !defined($_[1]) || $_[1] eq '' || $_[1] eq '0' || $_[1] eq '1'
3408 1 0 0 do {
3488 0 0 152 do {
3557 5 0 0 do {
3637 0 0 148 do {
3735 4 0 0 do {
3815 0 0 150 do {
3884 3 0 0 do {
3964 53 0 97 do {
4006 0 0 0 !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
4040 0 0 0 !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
4115 6 0 0 do {
4170 0 0 0 !defined($_[1]) || $_[1] eq '' || $_[1] eq '0' || $_[1] eq '1'
4231 4 0 0 do {
4311 3 0 146 do {