Branch Coverage

blib/lib/MARC/Convert/Wikidata/Object/Utils.pm
Criterion Covered Total %
branch 16 18 88.8


line true false branch
18 16 57 unless (exists $self->{$key})
22 0 57 unless (defined $self->{$key})
27 2 55 unless ($self->{$key} =~ /^\-?(\d{1,4})\-?\d{0,2}\-?\d{0,2}$/ms)
35 1 54 if ($year > "DateTime"->now->year)
45 10 22 unless (exists $self->{$key1} and exists $self->{$key2})
49 0 22 unless (defined $self->{$key1} and defined $self->{$key2})
59 3 19 if ($cmp != -1)
70 6 38 $month ? :
6 38 $day ? :