Branch Coverage

blib/lib/Moxie/Traits/Provider/Accessor.pm
Criterion Covered Total %
branch 22 40 55.0


line true false branch
24 32 5 if ($args[0]) { }
28 1 4 if ($method_name =~ /^get_(.*)$/u) { }
36 0 37 unless $meta->has_slot($slot_name) or $meta->has_slot_alias($slot_name)
41 0 203 if scalar @_ != 1
51 0 1 if ($args[0]) { }
58 0 1 if $meta->name->isa('Moxie::Object::Immutable')
61 0 1 unless $meta->has_slot($slot_name) or $meta->has_slot_alias($slot_name)
66 0 0 if scalar @_ > 1
76 13 1 if ($args[0]) { }
80 1 0 if ($method_name =~ /^set_(.*)$/u) { }
88 0 14 if $meta->name->isa('Moxie::Object::Immutable')
91 0 14 unless $meta->has_slot($slot_name) or $meta->has_slot_alias($slot_name)
96 0 51 if scalar @_ < 1
106 11 2 if ($args[0]) { }
110 2 0 if ($method_name =~ /^has_(.*)$/u) { }
118 0 13 unless $meta->has_slot($slot_name) or $meta->has_slot_alias($slot_name)
130 10 0 if ($args[0]) { }
134 0 0 if ($method_name =~ /^clear_(.*)$/u) { }
142 0 10 if $meta->name->isa('Moxie::Object::Immutable')
145 0 10 unless $meta->has_slot($slot_name) or $meta->has_slot_alias($slot_name)