Branch Coverage

blib/lib/WebService/Nestoria/Search/MetadataResponse.pm
Criterion Covered Total %
branch 17 24 70.8


line true false branch
103 0 13 if (@_ % 2 != 0)
108 0 26 unless (exists $params{$required})
117 13 0 if (defined $metadata_name and defined $metadata_date)
132 1 12 if ($params{'num_beds'}) { }
0 12 elsif ($params{'num_rooms'}) { }
143 1 12 if ($params{'per_sqm'})
190 1 12 if (not defined $year || defined $mm) { }
12 0 elsif ($params{'range'} eq 'monthly') { }
206 1 10 exists $long_months{$mm} ? :
1 11 exists $short_months{$mm} ? :
209 0 12 if ($month == 0)
222 64 0 if ($month =~ /(\d\d\d\d)_m(\d+)/)