Branch Coverage

blib/lib/JMAP/Tester.pm
Criterion Covered Total %
branch 42 86 48.8


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)
441 0 4 $self->should_return_futures ? :
455 7 1 if (&_HASH0($data)) { }
1 0 elsif (&_ARRAY0($data)) { }
525 0 1 unless $uri
531 0 3 unless defined $value
534 1 2 if ($param eq "accountId")
553 0 1 unless ($res->is_success)
580 0 1 $self->should_return_futures ? :
622 0 1 unless my $uri = $self->download_uri
626 0 4 unless $uri =~ /\{$param\}/u
629 0 4 unless defined $value
632 1 3 if ($param eq "name")
639 0 1 if (my $jwtc = $self->_get_jwt_config)
681 0 1 $arg->{'accept'} ? :
692 0 1 unless ($res->is_success)
703 0 1 $self->should_return_futures ? :
707 0 9 $self->_access_token ? :
726 1 0 unless my $jwtc = $self->_jwt_config
727 0 0 unless $jwtc->{'signingKeyValidUntil'}
728 0 0 if $jwtc->{'signingKeyValidUntil'} gt $self->_now_timestamp
731 0 0 unless $jwtc = $self->_jwt_config
767 1 2 unless ($res->code == 200)
789 0 2 $self->should_return_futures ? :
815 0 1 $self->should_return_futures ? :
842 0 1 if ($client_session->{'signingId'} and $client_session->{'signingKey'}) { }
853 3 0 if (defined(my $uri = $$client_session{"${type}Url"})) { }
884 0 0 unless $self->has_authentication_uri
898 0 0 if ($res->code == 204)
916 0 0 $self->should_return_futures ? :
939 0 0 $self->should_return_futures ? :
952 0 0 defined $headers ? :