Branch Coverage

blib/lib/JMAP/Tester.pm
Criterion Covered Total %
branch 44 86 51.1


line true false branch
162 1 3 if ($data->$JMAP::Tester::_isa("JMAP::Tester::JSONLiteral"))
193 1 8 unless $self->use_json_typist
287 0 1 unless $self->_has_accounts
308 0 4 unless $self->_has_primary_accounts
348 0 4 unless $self->has_api_uri
359 1 3 if ($input_request->$JMAP::Tester::_isa('JMAP::Tester::JSONLiteral')) { }
364 3 0 &_ARRAY0($input_request) ? :
370 0 3 if (defined $copy->[2]) { }
384 0 1 if (ref $arg{$key} and ref $arg{$key} eq "SCALAR" and not defined ${$arg{$key};})
405 0 3 if $ENV{'JMAP_TESTER_NO_WRAPPER'} and &_ARRAY0($input_request)
407 0 3 if ($self->_has_default_using and not exists $request->{'using'})
431 0 4 unless ($res->is_success)
444 0 4 $self->should_return_futures ? :
458 7 1 if (&_HASH0($data)) { }
1 0 elsif (&_ARRAY0($data)) { }
529 0 1 unless $uri
535 0 3 unless defined $value
538 1 2 if ($param eq "accountId")
557 0 1 unless ($res->is_success)
588 0 1 $self->should_return_futures ? :
630 0 1 unless my $uri = $self->download_uri
634 0 4 unless $uri =~ /\{$param\}/u
637 0 4 unless defined $value
640 1 3 if ($param eq "name")
647 0 1 if (my $jwtc = $self->_get_jwt_config)
689 0 1 $arg->{'accept'} ? :
700 0 1 unless ($res->is_success)
717 0 1 $self->should_return_futures ? :
721 0 9 $self->_access_token ? :
740 1 0 unless my $jwtc = $self->_jwt_config
741 0 0 unless $jwtc->{'signingKeyValidUntil'}
742 0 0 if $jwtc->{'signingKeyValidUntil'} gt $self->_now_timestamp
745 0 0 unless $jwtc = $self->_jwt_config
781 1 2 unless ($res->code == 200)
805 0 2 $self->should_return_futures ? :
831 0 1 $self->should_return_futures ? :
858 0 1 if ($client_session->{'signingId'} and $client_session->{'signingKey'}) { }
869 3 0 if (defined(my $uri = $$client_session{"${type}Url"})) { }
900 0 0 unless $self->has_authentication_uri
914 0 0 if ($res->code == 204)
933 0 0 $self->should_return_futures ? :
961 0 1 $self->should_return_futures ? :
974 0 1 defined $headers ? :