Branch Coverage

blib/lib/Data/Radius/DictionaryParser.pm
Criterion Covered Total %
branch 39 50 78.0


line true false branch
50 0 1 if $included_files{$synthetic_fname}
72 0 101 if $included_files{$file}
115 3004 10952 if $line =~ /^\s*$/
124 5154 5798 if ($cmd eq 'attribute') { }
5512 286 elsif ($cmd eq 'value') { }
70 216 elsif ($cmd eq 'vendor') { }
36 180 elsif ($cmd eq 'begin-vendor') { }
36 144 elsif ($cmd eq 'end-vendor') { }
24 120 elsif ($cmd eq 'begin-tlv') { }
24 96 elsif ($cmd eq 'end-tlv') { }
96 0 elsif ($cmd eq '$include') { }
126 1416 3738 if ($vendor)
128 156 1260 if ($vendor =~ /has_tag/)
132 80 1336 if ($vendor =~ /encrypt=(\d)/)
138 232 1184 if ($has_options)
145 0 5154 if (exists $dict_attr{$name})
160 212 4942 if ($begin_tlv) { }
175 0 5512 unless (exists $dict_attr{$name})
190 0 36 unless (exists $dict_vendor_name{$name})
198 0 36 unless ($begin_vendor)
205 0 24 if ($begin_tlv)
212 0 24 unless (exists $dict_attr{$name})
216 0 24 if ($dict_attr{$name}{'type'} ne 'tlv')
224 0 24 unless ($begin_tlv)
237 4 92 if ('File::Spec'->file_name_is_absolute($name)) { }