bin/ubic-admin

filter: Statementstmt 77.7% 14 / 18 Branchbran 75.0% 3 / 4 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 70.9% 22 / 31 SCAR 0.2
CC
1
Cov
72%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« bin/ubic-watchdog ↑ Summary lib/Ubic/Credentials/OS/Windows.pm »
1 #!/usr/bin/env perl
2 package ubic_admin;
3 1 $ubic_admin::VERSION = '1.59';
4 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 # ABSTRACT: ubic administration script
8  
9  
10 2 ▶use Pod::Usage;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 2 ▶use Ubic::Admin::Setup;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 1 ▶return 1 if caller;
Branch: 1 branch
BranchTrueFalseTotal
if caller 1 1 2
14  
15 0 my $command = shift @ARGV;
16  
17 0 ▶if (not defined $command or $command ne 'setup') {
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $command or $command ne "setup") 0 1 1
Condition33%1/3
not defined $command or $command ne "setup"
l!l&&r!l&&!r
001
MC/DC0%0/2
not defined $command or $command ne "setup"
not defined $command $command ne "setup"
Truth table33%1/3
not(A) or B
A= not defined $commandB= $command ne "setup"
ABresult
1X1
011
000
18 0 pod2usage(2);
19 }
20  
21 0 Ubic::Admin::Setup::setup();
22  
23 __END__
« bin/ubic-watchdog ↑ Summary lib/Ubic/Credentials/OS/Windows.pm »