| lib/Getopt/Type/Tiny.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 18 | 27 | 66.6 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 41 | 0 | 0 | 1 | $coerce && $param->has_coercion |
| 120 | 32 | 2 | 0 | $options->{'coerce'} and not $types{$name}->has_coercion |
| 134 | 0 | 0 | 9 | $types{$name}->name ne "Bool" and not $this_getopt_spec =~ /=/u |
| 141 | 4 | 1 | 1 | $explicit_modifier ne $inferred_modifier and not $options->{'nowarn'} |
| 172 | 28 | 6 | 0 | exists $options->{'default'} and exists $options->{'required'} |
| 233 | 1 | 29 | 4 | exists $opt_for{$name} and not $type->check($opt_for{$name}) |
| 247 | 0 | 1 | 1 | $required{$name} and not exists $opt_for{$name} |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 77 | 11 | 1 | 2 | $param->is_a_type_of(&Int()) || $param->is_a_type_of(&Num()) || $param->is_a_type_of(&Str()) || $param->equals(&Any()) || $coerce && $param->has_coercion |
| 196 | 0 | 4 | 0 | $types{$name} //= &Bool() |