| blib/lib/Declare/Opts.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 25 | 31 | 80.6 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 59 | 17 | 3 | 0 | $config{'bool'} and $config{'check'} |
| 62 | 17 | 3 | 0 | $config{'bool'} and $config{'transform'} |
| 65 | 15 | 5 | 0 | $config{'list'} and $config{'bool'} |
| 69 | 2 | 0 | 0 | ref $config{'default'} and ref $config{'default'} ne 'CODE' |
| 77 | 6 | 2 | 1 | $ref and not $ref =~ /^(CODE|Regexp)$/ |
| 106 | 3 | 3 | 24 | $opt =~ /^-+([^-=]+)(?:=(.+))?$/ and not $no_flags |
| line | l | !l | condition |
|---|---|---|---|
| 144 | 2 | 2 | $self->opts->{$_}{'description'} || 'No Description' |
| 177 | 4 | 8 | ref $check || '' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 77 | 2 | 5 | 1 | $ref || $config{'check'} =~ /^(file|dir|number)$/ |
| 1 | 1 | 7 | $ref and not $ref =~ /^(CODE|Regexp)$/ or not $ref || $config{'check'} =~ /^(file|dir|number)$/ | |
| 198 | 2 | 3 | 0 | $ref || $check |