Branch Coverage

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


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