Branch Coverage

blib/lib/Genealogy/ChroniclingAmerica.pm
Criterion Covered Total %
branch 32 48 66.6


line true false branch
62 1 5 unless defined $class
65 4 1 if (ref $_[0] eq 'HASH') { }
0 1 elsif (ref $_[0] or not defined $_[0]) { }
1 0 elsif (@_ % 2 == 0) { }
73 0 5 unless ($args{'firstname'})
77 0 5 unless (defined $args{'lastname'})
81 0 5 unless ($args{'state'})
86 0 5 if length $args{'state'} == 2
89 5 0 unless delete $args{'ua'}
95 1 4 if ($query_parameters{'state'} eq 'District of columbia')
99 1 4 if ($args{'middlename'}) { }
108 5 0 if ($args{'date_of_birth'})
111 3 2 if ($args{'date_of_death'})
123 0 5 if ($resp->is_error)
128 0 5 unless ($resp->is_success)
138 0 5 if ($data->{'itemsPerPage'} < $matches)
143 3 2 if ($matches)
162 2 6 if $self->{'matches'} == 0
164 4 2 if ($self->{'index'} >= $self->{'matches'})
171 0 2 unless (defined $entry->{'url'})
177 0 2 unless (defined $text)
182 0 2 unless ($text =~ /$self->{'name'}/ism)
190 0 2 if ($resp->is_error)
196 0 2 unless ($resp->is_success)