Branch Coverage

blib/lib/Net/Cisco/ObjectGroup.pm
Criterion Covered Total %
branch 19 22 86.3


line true false branch
16 1 21 unless defined $$arg_ref{'type'}
17 1 20 unless $$arg_ref{'type'} =~ /^(?:icmp|network|protocol|service|port)$/i
20 1 19 unless defined $$arg_ref{'name'}
21 3 16 unless $$arg_ref{'name'} =~ /^[a-zA-Z0-9_.-]{1,64}$/
24 1 15 if exists $$arg_ref{'description'} and length $$arg_ref{'description'} > 200
27 5 0 $$arg_ref{'type'} =~ /(?:service|port)/i ? :
3 5 $$arg_ref{'type'} =~ /protocol/i ? :
3 8 $$arg_ref{'type'} =~ /network/i ? :
4 11 $$arg_ref{'type'} =~ /icmp/i ? :
34 0 15 unless $class->require
44 15 0 if $og->can('_init')