Branch Coverage

blib/lib/Async/Redis/KeyExtractor.pm
Criterion Covered Total %
branch 20 60 33.3


line true false branch
280 25 1 if (my $handler = $KEY_POSITIONS{$command})
286 0 5 if ($command =~ /$pattern->[0]/u)
292 0 1 if $ENV{'REDIS_DEBUG'}
298 2 4 unless defined $prefix and $prefix ne ""
302 0 7 if $i > $#args
315 0 3 unless @args >= 2
318 1 2 unless defined $numkeys and $numkeys =~ /^\d+$/u and $numkeys > 0
330 2 4 if (uc $args[$i] eq "STREAMS")
335 0 2 unless defined $streams_idx
342 0 2 unless $num_streams > 0
353 1 1 if (@args > 2 and $args[2] ne "")
359 1 10 if (uc $args[$i] eq "KEYS")
371 0 1 unless @args >= 2
375 1 0 if ($subcmd =~ /^(ENCODING|FREQ|IDLETIME|REFCOUNT)$/u)
385 0 0 unless @args >= 2
392 0 0 unless @args >= 1
394 0 0 unless $numkeys =~ /^\d+$/u and $numkeys > 0
401 0 0 unless @args >= 2
403 0 0 unless $numkeys =~ /^\d+$/u and $numkeys > 0
410 0 0 unless @args >= 1
412 0 0 unless $numkeys =~ /^\d+$/u and $numkeys > 0
419 0 0 unless @args >= 1
421 0 0 unless $numkeys =~ /^\d+$/u and $numkeys > 0
428 0 0 unless @args >= 2
430 0 0 unless $numkeys =~ /^\d+$/u and $numkeys > 0
437 0 0 unless @args >= 2
439 0 0 if ($subcmd =~ /^(STREAM|GROUPS|CONSUMERS)$/u)
448 0 0 unless @args >= 2
450 0 0 if ($subcmd =~ /^(CREATE|DESTROY|SETID|DELCONSUMER|CREATECONSUMER)$/u)
462 0 0 if (uc($args[$i]) =~ /^(STORE|STOREDIST)$/u)