Branch Coverage

blib/lib/Software/Packager/Object.pm
Criterion Covered Total %
branch 23 40 57.5


line true false branch
109 0 16 unless $self->_check_data(%data)
140 0 16 unless (exists $data{'TYPE'})
147 14 2 if ($data{'TYPE'} =~ /^file$/i) { }
2 0 elsif ($data{'TYPE'} =~ /link/i) { }
149 0 14 unless (-f $data{'SOURCE'})
157 0 2 unless ($data{'SOURCE'} and $data{'DESTINATION'})
169 0 62 unless ($self->$function($data{$key}))
210 16 50 if ($value) { }
213 0 16 unless ($value =~ /^file$|^directory$|^hardlink$|^softlink$|^install$|^config$|^volatile$|^pipe$|^charater$|^block$|^multiplex$|^installdir$/i)
255 16 16 if ($value) { }
281 16 504 if ($value) { }
319 14 14 if ($value) { }
326 0 14 unless ($$self{'MODE'})
328 0 0 if ($$self{'TYPE'} eq 'directory') { }
334 0 0 if (-e $self->source) { }
347 0 14 if ($$self{'TYPE'} =~ /softlink/i)
376 0 14 if ($value) { }
382 14 0 unless ($$self{'USER'})
408 0 14 if ($value) { }
414 14 0 unless ($$self{'GROUP'})