Condition Coverage

blib/lib/GraphQL/Client/CLI.pm
Criterion Covered Total %
condition 4 40 10.0


and 3 conditions

line !l l&&!r l&&r condition
90 0 0 0 $unpack && $err
145 0 0 0 @$item && $item->[0]
170 0 0 0 $data and $data->{'data'}
179 0 0 0 $first and ref $first eq 'HASH'
301 0 0 0 @_ == 1 && $_[0] =~ /^\d+$/ && $_[0]
0 0 0 @_ % 2 == 0 && {@_}->{'-exitval'}

or 2 conditions

line l !l condition
97 0 3 $ENV{'GRAPHQL_CLIENT_OPTIONS'} || ''
125 3 0 $options{'query'} ||= '-'
155 0 0 $format || 'json:pretty'
264 11 7 $segment->{'type'} || ''
301 0 0 (@_ == 1 && $_[0] =~ /^\d+$/ && $_[0] // @_ % 2 == 0 && {@_}->{'-exitval'}) // 2

or 3 conditions

line l !l&&r !l&&!r condition
156 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'
301 0 0 0 @_ == 1 && $_[0] =~ /^\d+$/ && $_[0] // @_ % 2 == 0 && {@_}->{'-exitval'}