| lib/Smartcat/App/Command.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 9 | 18 | 50.0 |
| line | true | false | branch |
|---|---|---|---|
| 50 | 0 | 0 | defined $opt->{'filetype'} ? : |
| 57 | 0 | 2 | unless defined $opt->{'project_id'} |
| 67 | 0 | 0 | unless -d $opt->{'project_workdir'} |
| 77 | 0 | 2 | if (defined $opt->{'token_id'} and defined $opt->{'token'}) |
| 82 | 0 | 2 | if (defined $opt->{'base_url'}) |
| 86 | 1 | 1 | if (defined $opt->{'log'}) |
| 89 | 0 | 1 | unless -d dirname($opt->{'log'}) and -w _ |
| 97 | 0 | 2 | unless defined $app->{'config'}->username and defined $app->{'config'}->password |
| 99 | 1 | 1 | if defined $opt->{'debug'} |