Branch Coverage

blib/lib/Wikibase/Datatype/Utils.pm
Criterion Covered Total %
branch 36 36 100.0


line true false branch
26 1 57 unless ($self->{$key} =~ /^([\+\-]\d+)\-(\d{2})\-(\d{2})T(\d{2}):(\d{2}):(\d{2})Z$/ms)
32 1 56 if ($month > 12)
37 52 4 if ($month > 0) { }
43 1 51 if ($day > $dt->day)
49 1 3 if ($day != 0)
55 2 52 if ($hour != 0)
60 1 51 if ($min != 0)
65 1 50 if ($sec != 0)
85 100 4 unless ($SKIP_CHECK_LANG)
88 4 96 if (@LANGUAGE_CODES) { }
95 6 94 if (&none(sub {
106 39 2 unless ($SKIP_CHECK_TERM_LANG)
109 2 37 if (@TERM_LANGUAGE_CODES) { }
116 5 34 if (&none(sub {
143 1 6 unless (defined $self->{$key})
147 2 4 unless ($self->{$key} =~ /^L\d+\-S\d+$/ms)
157 27 490 unless (defined $self->{$key})
161 10 480 unless ($self->{$key} =~ /^$char\d+$/ms)