Condition Coverage

blib/lib/GraphQL/Client/CLI.pm
Criterion Covered Total %
condition 7 46 15.2


and 3 conditions

line !l l&&!r l&&r condition
101 0 0 0 $unpack && $err
141 0 4 1 ref $transport eq "HASH" and %$transport
158 0 0 0 @$item && $item->[0]
183 0 0 0 ref $data eq "HASH" and $data->{'data'}
193 0 0 0 $first and ref $first eq "HASH"
208 0 0 0 $first and ref $first eq "HASH"
342 0 0 0 @_ == 1 && $_[0] =~ /^\d+$/ && $_[0]
0 0 0 @_ % 2 == 0 && {@_}->{'-exitval'}

or 2 conditions

line l !l condition
108 1 4 $ENV{'GRAPHQL_CLIENT_OPTIONS'} || ''
137 5 0 $options{'query'} ||= "-"
168 0 0 $format || 'json:pretty'
305 13 8 $segment->{'type'} || ''
342 0 0 (@_ == 1 && $_[0] =~ /^\d+$/ && $_[0] // @_ % 2 == 0 && {@_}->{'-exitval'}) // 2

or 3 conditions

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