Branch Coverage

blib/lib/JMAP/Tester.pm
Criterion Covered Total %
branch 5 88 5.6


line true false branch
157 1 3 unless $self->use_json_typist
233 0 0 unless $_[0]->_has_accounts
255 0 0 unless $self->_has_primary_accounts
297 0 0 unless $self->has_api_uri
306 0 0 &_ARRAY0($input_request) ? :
312 0 0 if (defined $copy->[2]) { }
326 0 0 if (ref $arg{$key} and ref $arg{$key} eq "SCALAR" and not defined ${$arg{$key};})
347 0 0 if $ENV{'JMAP_TESTER_NO_WRAPPER'} and &_ARRAY0($input_request)
349 0 0 if ($self->_has_default_using and not exists $request->{'using'})
372 0 0 unless ($res->is_success)
382 0 0 $self->should_return_futures ? :
398 3 1 if (&_HASH0($data)) { }
1 0 elsif (&_ARRAY0($data)) { }
466 0 0 unless $uri
472 0 0 unless defined $value
475 0 0 if ($param eq "accountId")
494 0 0 unless ($res->is_success)
518 0 0 $self->should_return_futures ? :
556 0 0 unless my $uri = $self->download_uri
560 0 0 unless $uri =~ /\{$param\}/u
563 0 0 unless defined $value
566 0 0 if ($param eq "name")
573 0 0 if (my $jwtc = $self->_get_jwt_config)
627 0 0 unless ($res->is_success)
638 0 0 $self->should_return_futures ? :
653 0 0 $self->_access_token ? :
673 0 0 unless my $jwtc = $self->_jwt_config
674 0 0 unless $jwtc->{'signingKeyValidUntil'}
675 0 0 if $jwtc->{'signingKeyValidUntil'} gt $self->_now_timestamp
678 0 0 unless $jwtc = $self->_jwt_config
692 0 0 unless $self->has_authentication_uri
716 0 0 unless ($res->code == 200)
727 0 0 unless (grep {$_->{'type'} eq "password";} @{$$start_reply{"methods"};})
754 0 0 unless ($res->code == 201)
775 0 0 $self->should_return_futures ? :
807 0 0 unless ($res->code == 200)
828 0 0 $self->should_return_futures ? :
857 0 0 if ($client_session->{'signingId'} and $client_session->{'signingKey'}) { }
868 0 0 if (defined(my $uri = $$client_session{"${type}Url"})) { }
901 0 0 unless $self->has_authentication_uri
915 0 0 if ($res->code == 204)
933 0 0 $self->should_return_futures ? :
958 0 0 $self->should_return_futures ? :
973 0 0 defined $headers ? :