| blib/lib/MooX/SingleArg.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 13 | 18 | 72.2 |
| line | true | false | branch |
|---|---|---|---|
| 44 | 1 | 3 | unless defined $class->force_single_arg |
| 46 | 0 | 4 | unless $class->has_single_arg |
| 48 | 1 | 3 | if @args != 1 |
| 50 | 1 | 2 | unless ref $args[0] ne 'HASH' or $class->force_single_arg |
| 70 | 0 | 6 | if (@_ > 2) |
| 73 | 2 | 0 | if defined $value |
| 92 | 0 | 5 | if (@_ > 2) |
| 95 | 2 | 1 | if defined $value |
| 110 | 4 | 0 | defined $class->single_arg ? : |