Branch Coverage

blib/lib/Lexical/Accessor.pm
Criterion Covered Total %
branch 21 32 65.6


line true false branch
50 5 17 if ($me->{'is'} eq 'rw') { }
4 13 elsif ($me->{'is'} eq 'ro') { }
4 9 elsif ($me->{'is'} eq 'rwp') { }
4 5 elsif ($me->{'is'} eq 'lazy') { }
53 0 5 if not exists $me->{'accessor'}
58 0 4 if not exists $me->{'reader'}
63 0 4 unless exists $me->{'reader'}
65 0 4 if not exists $me->{'writer'}
70 0 4 unless exists $me->{'reader'}
72 4 0 unless exists $me->{'lazy'}
74 0 4 unless $me->{'builder'} or $me->{'default'}
83 0 22 if (defined $me->{'init_arg'})
88 0 22 if ($me->{'required'})
93 0 22 if (defined $me->{'lazy'} and not $me->{'lazy'}) { }
99 5 17 if $me->{'default'} or $me->{'builder'}
115 1 0 if (ref $me->{'handles'} eq "ARRAY")