Branch Coverage

blib/lib/Csistck/Test/Pkg.pm
Criterion Covered Total %
branch 11 24 45.8


line true false branch
18 17 0 if ("$^O" eq 'linux')
107 0 10 unless ($type)
110 0 10 unless $type
113 0 10 unless $Csistck::Test::Pkg::Cmds->{$type}
128 0 4 unless my $cmd = sprintf($Csistck::Test::Pkg::Cmds->{$type}{'check'}, $pkg)
134 1 3 unless $ret == 0
146 1 0 if (defined $Csistck::Test::Pkg::Cmds->{$type}{'install'}) { }
157 0 1 unless $ret == 0
170 0 0 if (defined $Csistck::Test::Pkg::Cmds->{$type}{'diff'}) { }
181 0 0 unless $ret == 0
228 13 0 if $pkg =~ m[^[A-Za-z0-9\-\_\./]+$]
232 4 0 if $pkg_name =~ m[^[A-Za-z0-9\-\_\./]+$]