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 149 if $included_files{$file}
115 4488 16416 if $line =~ /^\s*$/
124 7722 8694 if ($cmd eq 'attribute') { }
8268 426 elsif ($cmd eq 'value') { }
104 322 elsif ($cmd eq 'vendor') { }
54 268 elsif ($cmd eq 'begin-vendor') { }
54 214 elsif ($cmd eq 'end-vendor') { }
36 178 elsif ($cmd eq 'begin-tlv') { }
36 142 elsif ($cmd eq 'end-tlv') { }
142 0 elsif ($cmd eq '$include') { }
126 2116 5606 if ($vendor)
128 234 1882 if ($vendor =~ /has_tag/)
132 120 1996 if ($vendor =~ /encrypt=(\d)/)
138 348 1768 if ($has_options)
145 0 7722 if (exists $dict_attr{$name})
160 318 7404 if ($begin_tlv) { }
175 0 8268 unless (exists $dict_attr{$name})
190 0 54 unless (exists $dict_vendor_name{$name})
198 0 54 unless ($begin_vendor)
205 0 36 if ($begin_tlv)
212 0 36 unless (exists $dict_attr{$name})
216 0 36 if ($dict_attr{$name}{'type'} ne 'tlv')
224 0 36 unless ($begin_tlv)
237 4 138 if ('File::Spec'->file_name_is_absolute($name)) { }