Branch Coverage

blib/lib/GraphQL/Client.pm
Criterion Covered Total %
branch 24 30 80.0


line true false branch
25 1 12 if ((&reftype($operation_name) || '') eq 'HASH')
30 4 9 $variables && %$variables ? :
2 11 $operation_name ? :
46 2 11 if (my $exception = $result->{'error'})
51 4 9 if ($self->unpack)
52 2 2 if ($resp->{'errors'})
64 2 11 if (eval { do { $result->isa('Future') } }) { }
69 0 2 if (my $err = $@)
96 1 2 if (my $err = $@ or not $class->can('execute'))
98 0 1 if $ENV{'GRAPHQL_CLIENT_DEBUG'}
123 2 1 if $class
126 0 1 unless $protocol
136 3 0 unless $class =~ s/^\+//
148 0 2 unless $_[2]
155 0 2 if ref $self