Branch Coverage

lib/Ubic/Ping.pm
Criterion Covered Total %
branch 0 24 0.0


line true false branch
19 0 0 unless ('Ubic'->is_enabled($name))
20 0 0 if ($options->{'noc'}) { }
31 0 0 if ($status eq 'running') { }
38 0 0 if ($options->{'noc'}) { }
39 0 0 if ($status =~ /^[\w ]+$/) { }
60 0 0 if ($cgi->path_info eq '/ping') { }
0 0 elsif ($cgi->path_info =~ m[^/noc/(\d+)/?$]) { }
0 0 elsif ($cgi->path_info =~ m[^/status/port/(\d+)/?$]) { }
0 0 elsif (my($name) = $cgi->path_info =~ m[^/status/service/(.+?)/?$]) { }
70 0 0 unless (defined $name)
82 0 0 unless (defined $name)
92 0 0 unless ('Ubic'->has_service($name))