Branch Coverage

blib/lib/JMAP/Tester.pm
Criterion Covered Total %
branch 3 86 3.4


line true false branch
215 0 0 unless $_[0]->_has_accounts
237 0 0 unless $self->_has_primary_accounts
279 0 0 unless $self->has_api_uri
288 0 0 &_ARRAY0($input_request) ? :
294 0 0 if (defined $copy->[2]) { }
308 0 0 if (ref $arg{$key} and ref $arg{$key} eq 'SCALAR' and not defined ${$arg{$key};})
329 0 0 if $ENV{'JMAP_TESTER_NO_WRAPPER'} and &_ARRAY0($input_request)
331 0 0 if ($self->_has_default_using and not exists $request->{'using'})
354 0 0 unless ($res->is_success)
364 0 0 $self->should_return_futures ? :
380 1 1 if (&_HASH0($data)) { }
1 0 elsif (&_ARRAY0($data)) { }
448 0 0 unless $uri
454 0 0 unless defined $value
457 0 0 if ($param eq 'accountId')
476 0 0 unless ($res->is_success)
500 0 0 $self->should_return_futures ? :
533 0 0 unless my $uri = $self->download_uri
537 0 0 unless $uri =~ /\{$param\}/
540 0 0 unless defined $value
543 0 0 if ($param eq 'name')
550 0 0 if (my $jwtc = $self->_get_jwt_config)
601 0 0 unless ($res->is_success)
612 0 0 $self->should_return_futures ? :
627 0 0 $self->_access_token ? :
647 0 0 unless my $jwtc = $self->_jwt_config
648 0 0 unless $jwtc->{'signingKeyValidUntil'}
649 0 0 if $jwtc->{'signingKeyValidUntil'} gt $self->_now_timestamp
652 0 0 unless $jwtc = $self->_jwt_config
666 0 0 unless $self->has_authentication_uri
690 0 0 unless ($res->code == 200)
701 0 0 unless (grep {$_->{'type'} eq 'password';} @{$$start_reply{'methods'};})
728 0 0 unless ($res->code == 201)
749 0 0 $self->should_return_futures ? :
781 0 0 unless ($res->code == 200)
802 0 0 $self->should_return_futures ? :
831 0 0 if ($client_session->{'signingId'} and $client_session->{'signingKey'}) { }
842 0 0 if (defined(my $uri = $$client_session{"${type}Url"})) { }
875 0 0 unless $self->has_authentication_uri
889 0 0 if ($res->code == 204)
907 0 0 $self->should_return_futures ? :
932 0 0 $self->should_return_futures ? :
947 0 0 defined $headers ? :