Branch Coverage

blib/lib/Marmoset.pm
Criterion Covered Total %
branch 38 64 59.3


line true false branch
24 2 0 $] >= 5.01 ? :
33 0 4 if ref $caller
47 1 5 if $IS_FINAL{$caller}
51 4 1 exists $opts{'pack'} ? :
69 0 1 if $IS_FINAL{$caller}
94 5 5 unless $ATTRIBUTES{$_}
126 5 5 unless $ATTRIBUTES{$_}
134 5 2 exists $$_{'default'} ? :
137 0 7 exists $$_{'trigger'} ? :
140 1 6 exists $$_{'isa'} ? :
159 0 6 if $triggers{$$f{'slot'}}
163 5 1 if ($$f{'default'} and not $$f{'lazy'}) { }
0 1 elsif ($$f{'builder'} and not $$f{'lazy'}) { }
174 1 5 if (my $type = $$f{'isa'})
176 1 0 if ($$f{'coerce'})
178 0 1 $type->coercion->can_be_inlined ? :
184 1 0 $type->can_be_inlined ? :
195 1 3 if @others
199 0 1 if $triggers{$$f{'slot'}}
203 0 1 if ($$f{'default'} and not $$f{'lazy'}) { }
0 1 elsif ($$f{'builder'} and not $$f{'lazy'}) { }
0 1 elsif ($$f{'required'}) { }
217 0 1 if (my $type = $$f{'isa'})
220 0 0 if ($$f{'coerce'})
222 0 0 $type->coercion->can_be_inlined ? :
228 0 0 $type->can_be_inlined ? :
252 4 0 'Marmoset::Attribute'->HAS_SUB_NAME ? :
274 0 9 @_ == 1 && ref $_[0] eq 'HASH' ? :
294 5 0 unless exists $$me{'init_arg'}
316 0 0 if exists $$me{'required'} and not $$me{'required'} and not $$me{'builder'} and not $$me{'default'}
322 0 4 if defined $$me{'clearer'}
364 4 6 unless $Marmoset::REALLY_INSTALL