| blib/lib/MooX/SingleArg.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % | 
| branch | 13 | 18 | 72.2 | 
| line | true | false | branch | 
|---|---|---|---|
| 45 | 1 | 3 | unless defined $class->force_single_arg | 
| 47 | 0 | 4 | unless $class->has_single_arg | 
| 49 | 1 | 3 | if @args != 1 | 
| 51 | 1 | 2 | unless ref $args[0] ne 'HASH' or $class->force_single_arg | 
| 71 | 0 | 6 | if (@_ > 2) | 
| 74 | 2 | 0 | if defined $value | 
| 93 | 0 | 5 | if (@_ > 2) | 
| 96 | 2 | 1 | if defined $value | 
| 111 | 4 | 0 | defined $class->single_arg ? : |