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 ? :
538 0 0 unless my $uri = $self->download_uri
542 0 0 unless $uri =~ /\{$param\}/
545 0 0 unless defined $value
548 0 0 if ($param eq "name")
555 0 0 if (my $jwtc = $self->_get_jwt_config)
609 0 0 unless ($res->is_success)
620 0 0 $self->should_return_futures ? :
635 0 0 $self->_access_token ? :
655 0 0 unless my $jwtc = $self->_jwt_config
656 0 0 unless $jwtc->{'signingKeyValidUntil'}
657 0 0 if $jwtc->{'signingKeyValidUntil'} gt $self->_now_timestamp
660 0 0 unless $jwtc = $self->_jwt_config
674 0 0 unless $self->has_authentication_uri
698 0 0 unless ($res->code == 200)
709 0 0 unless (grep {$_->{'type'} eq "password";} @{$$start_reply{"methods"};})
736 0 0 unless ($res->code == 201)
757 0 0 $self->should_return_futures ? :
789 0 0 unless ($res->code == 200)
810 0 0 $self->should_return_futures ? :
839 0 0 if ($client_session->{'signingId'} and $client_session->{'signingKey'}) { }
850 0 0 if (defined(my $uri = $$client_session{"${type}Url"})) { }
883 0 0 unless $self->has_authentication_uri
897 0 0 if ($res->code == 204)
915 0 0 $self->should_return_futures ? :
940 0 0 $self->should_return_futures ? :
955 0 0 defined $headers ? :