Branch Coverage

lib/Smartcat/App/Command.pm
Criterion Covered Total %
branch 9 18 50.0


line true false branch
38 0 0 defined $opt->{'filetype'} ? :
45 0 2 unless defined $opt->{'project_id'}
55 0 0 unless -d $opt->{'project_workdir'}
65 0 2 if (defined $opt->{'token_id'} and defined $opt->{'token'})
70 0 2 if (defined $opt->{'base_url'})
74 1 1 if (defined $opt->{'log'})
77 0 1 unless -d dirname($opt->{'log'}) and -w _
85 0 2 unless defined $app->{'config'}->username and defined $app->{'config'}->password
87 1 1 if defined $opt->{'debug'}