Branch Coverage

blib/lib/Mastodon/Client.pm
Criterion Covered Total %
branch 15 34 44.1


line true false branch
94 1 1 unless ($self->client_id and $self->client_secret)
99 1 0 if ($self->access_token)
119 0 0 if ($params->{'access_code'}) { }
131 0 0 if (defined $response->{'error'}) { }
138 0 0 if $granted_scopes ne $requested_scopes
192 1 3 if (ref $id eq 'HASH')
204 2 2 if $id eq $own
234 0 0 if (ref $text eq 'HASH') { }
237 0 0 unless defined $params->{'status'}
260 0 0 if ($self->client_id and $self->client_secret)
293 1 3 if (ref $id)
330 0 0 unless join(' ', keys %{$data;}) =~ /\b(account_id|status_ids)\b/
340 2 3 ref $ids->[-1] eq 'HASH' ? :
343 2 3 unless scalar @{$ids;}
389 0 0 $query =~ /^#/ ? :
413 0 0 $query =~ /^#/ ? :
498 2 6 if (ref $id eq 'HASH')