blib/lib/Data/Rx/CoreType/str.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 18 | 18 | 100.0 |
line | true | false | branch |
---|---|---|---|
13 | 1 | 19 | unless "Data::Rx::Util"->_x_subset_keys_y($arg, {"length", 1, "value", 1}) |
17 | 3 | 16 | if (exists $arg->{'value'}) |
19 | 1 | 2 | if (not defined $val or ref $val) |
33 | 1 | 17 | if $arg->{'length'} |
35 | 2 | 16 | if defined $arg->{'value'} |
43 | 6 | 229 | unless (defined $value) |
54 | 112 | 117 | if (ref $value) |
62 | 15 | 102 | if ($self->{'length_check'} and not $self->{'length_check'}->(length $value)) |
70 | 44 | 58 | if (defined $self->{'value'} and $self->{'value'} ne $value) |