Condition Coverage

blib/lib/GraphQL/Client/CLI.pm
Criterion Covered Total %
condition 5 43 11.6


and 3 conditions

line !l l&&!r l&&r condition
101 0 0 0 $unpack && $err
157 0 0 0 @$item && $item->[0]
182 0 0 0 ref $data eq 'HASH' and $data->{'data'}
192 0 0 0 $first and ref $first eq 'HASH'
207 0 0 0 $first and ref $first eq 'HASH'
341 0 0 0 @_ == 1 && $_[0] =~ /^\d+$/ && $_[0]
0 0 0 @_ % 2 == 0 && {@_}->{'-exitval'}

or 2 conditions

line l !l condition
108 1 3 $ENV{'GRAPHQL_CLIENT_OPTIONS'} || ''
137 4 0 $options{'query'} ||= '-'
167 0 0 $format || 'json:pretty'
304 11 6 $segment->{'type'} || ''
341 0 0 (@_ == 1 && $_[0] =~ /^\d+$/ && $_[0] // @_ % 2 == 0 && {@_}->{'-exitval'}) // 2

or 3 conditions

line l !l&&r !l&&!r condition
168 0 0 0 $format eq 'json' or $format eq 'json:pretty'
0 0 0 $format eq 'csv' or $format eq 'tsv'
0 0 0 $format eq 'csv' or $format eq 'tsv' or $format eq 'table'
341 0 0 0 @_ == 1 && $_[0] =~ /^\d+$/ && $_[0] // @_ % 2 == 0 && {@_}->{'-exitval'}