Branch Coverage

blib/lib/Mastodon/Client.pm
Criterion Covered Total %
branch 25 42 59.5


line true false branch
97 4 7 unless ($self->client_id and $self->client_secret)
102 1 6 if ($self->access_token)
122 1 5 if ($params->{'access_code'}) { }
136 1 5 if (defined $response->{'error'}) { }
143 1 4 if $granted_scopes ne $requested_scopes
197 1 3 if (ref $id eq 'HASH')
209 2 2 if $id eq $own
239 0 0 if (ref $text eq 'HASH') { }
242 0 0 unless defined $params->{'status'}
265 0 2 if ($self->client_id and $self->client_secret)
282 0 2 if $params->{'instance'}
291 0 2 $website ? :
307 1 3 if (ref $id)
344 0 0 unless join(' ', keys %{$data;}) =~ /\b(account_id|status_ids)\b/
354 2 3 ref $ids->[-1] eq 'HASH' ? :
357 2 3 unless scalar @{$ids;}
403 0 0 $query =~ /^#/ ? :
427 0 0 $query =~ /^#/ ? :
464 0 0 if (exists $params->{'focus'})
466 0 0 if ($x >= -1 and $x <= 1 and $y >= -1 and $y <= 1) { }
525 2 6 if (ref $id eq 'HASH')