| blib/lib/Slovo/Command/prodan/products.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 9 | 14 | 64.2 |
| line | true | false | branch |
|---|---|---|---|
| 18 | 0 | 5 | unless $action =~ /$a_pattern/u |
| 31 | 4 | 1 | if ($action =~ /$file_actions/u) { } |
| 1 | 0 | elsif ($action =~ /$where_actions/u) { } | |
| 32 | 2 | 2 | unless $file |
| 36 | 0 | 2 | unless $file =~ /\.(ya?ml|json)$/u |
| 44 | 0 | 1 | if $action eq "delete" and "STDERR"->say("Please provide a WHERE clause for DELETE!") |
| 71 | 4 | 0 | unless ($db->select("products", ["id"], {"alias", $_->{'alias'}, "sku", $_->{'sku'}})->hash) |