blib/lib/Wikibase/Datatype/Utils.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 26 | 26 | 100.0 |
line | true | false | branch |
---|---|---|---|
21 | 1 | 51 | unless ($self->{$key} =~ /^([\+\-]\d+)\-(\d{2})\-(\d{2})T(\d{2}):(\d{2}):(\d{2})Z$/ms) |
27 | 1 | 50 | if ($month > 12) |
32 | 46 | 4 | if ($month > 0) { } |
38 | 1 | 45 | if ($day > $dt->day) |
44 | 1 | 3 | if ($day != 0) |
50 | 2 | 46 | if ($hour != 0) |
55 | 1 | 45 | if ($min != 0) |
60 | 1 | 44 | if ($sec != 0) |
80 | 4 | 114 | if (&none(sub { |
106 | 1 | 6 | unless (defined $self->{$key}) |
110 | 2 | 4 | unless ($self->{$key} =~ /^L\d+\-S\d+$/ms) |
120 | 27 | 436 | unless (defined $self->{$key}) |
124 | 9 | 427 | unless ($self->{$key} =~ /^$char\d+$/ms) |