Branch Coverage

blib/lib/Tapper/Installer/Precondition/PRC.pm
Criterion Covered Total %
branch 4 78 5.1


line true false branch
30 0 0 if $$self{'cfg'}{'mcp_port'}
32 0 0 if $$self{'cfg'}{'sync_port'}
33 0 0 if $$self{'cfg'}{'prc_nfs_server'}
34 0 0 if $$self{'cfg'}{'scenario_id'}
36 0 0 if $$self{'cfg'}{'files'}
37 0 0 if $$self{'cfg'}{'testplan'}
53 0 0 if ($$prc{'config'}{'guest_count'}) { }
73 0 0 unless -d "$basedir/etc"
74 0 0 unless open my $file, '>', "$basedir/etc/tapper"
87 0 0 unless (-d "$basedir/etc/init.d")
88 0 0 unless mkdir "$basedir/etc/init.d"
91 0 0 if $error
92 0 0 if (not $distro =~ /tapper/)
95 0 0 unless defined $read and defined $write
99 0 0 unless defined $pid
102 0 0 if ($pid == 0) { }
109 0 0 if ($distro =~ /suse|debian/) { }
0 0 elsif ($distro =~ /(redhat)|(fedora)/) { }
0 0 elsif ($distro =~ /(ubuntu)/) { }
0 0 elsif ($distro =~ /gentoo/) { }
120 0 0 if $error
126 0 0 if ($?)
141 0 0 if $$prc{'config'}{'guest_number'}
143 0 0 if ($$prc{'config'}{'guest_count'})
147 0 0 if ($$prc{'config'}{'testprogram_list'}) { }
0 0 elsif ($$prc{'config'}{'test_program'}) { }
174 0 0 unless open my $file, '>', $basedir . '/test.config'
191 0 0 if $distro and not $$prc{'skip_startscript'}
192 0 0 if $retval
195 0 0 if $error
199 0 0 if $error
201 0 0 if ($$prc{'tapper_package'})
204 0 0 if $retval = $pkg_object->install($package)
218 1 0 if $file =~ /suse/i
219 0 0 if $file =~ /redhat/i
220 0 0 if $file =~ /gentoo/i
221 0 0 if $file =~ /tapper/i
224 1 1 unless open my $fh, '<', "$dir/etc/issue"
230 1 0 if $distro