Branch Coverage

blib/lib/WebService/Prowl.pm
Criterion Covered Total %
branch 1 40 2.5


line true false branch
16 0 1 if (eval { do { require XML::LibXML::Simple } }) { }
33 0 0 $params{'providerkey'} ? :
43 0 0 if ($method eq 'verify') { }
0 0 elsif ($method eq 'add') { }
0 0 elsif ($method eq 'retrieve_token') { }
0 0 elsif ($method eq 'retrieve_apikey') { }
44 0 0 unless $self->{'apikey'}
46 0 0 if $self->{'providerkey'}
50 0 0 unless $self->{'apikey'}
54 0 0 unless $req_params->{'event'}
55 0 0 unless $req_params->{'application'}
56 0 0 unless $req_params->{'description'}
65 0 0 if not $req_params->{'priority'} =~ /^-?\d+$/ or $req_params->{'priority'} < -2 or $req_params->{'priority'} > 2
70 0 0 $self->{'providerkey'} ? :
80 0 0 unless $self->{'providerkey'}
84 0 0 unless $self->{'providerkey'}
86 0 0 unless $token
121 0 0 if ($res->is_error)
125 0 0 $data->{'error'} ? :
142 0 0 utf8::is_utf8($_[0]) ? :