line |
true |
false |
branch |
122
|
3 |
4 |
if ($key eq 'cmd') { } |
|
3 |
1 |
elsif ($key eq 'open') { } |
|
1 |
0 |
elsif ($key eq 'no_extra') { } |
158
|
18 |
28 |
if (my($cmd, $key, $flag, $expire, $size, $cas, $noreply) = $_[1] =~ /^ *(set|add|replace|append|prepend|cas) +([^ ]+) +(\d+) +(\d+) +(\d+)(?: +(\d+))?( +noreply)? *$/) { } |
|
19 |
9 |
elsif ($_[1] =~ /^ *(gets?) +([^ ].*) *$/) { } |
|
2 |
7 |
elsif (($key, $noreply) = $_[1] =~ /^ *delete +([^ ]+)( +noreply)? *$/) { } |
|
5 |
2 |
elsif (($cmd, $key, my $val, $noreply) = $_[1] =~ /^ *(incr|decr) +([^ ]+) +(\d+)( +noreply)? *$/) { } |
|
0 |
2 |
elsif ($_[1] =~ /^ *stats *$/) { } |
|
2 |
0 |
elsif (($noreply) = $_[1] =~ /^ *flush_all( +noreply)? *$/) { } |
|
0 |
0 |
elsif ($_[1] =~ /^ *verbosity( +noreply)? *$/) { } |
|
0 |
0 |
elsif ($_[1] =~ /^ *version *$/) { } |
|
0 |
0 |
elsif ($_[1] =~ /^ *quit *$/) { } |
162
|
18 |
0 |
if ($_[1] eq '') { } |
163
|
4 |
14 |
if ($cmd eq 'set') { } |
|
2 |
12 |
elsif ($cmd eq 'add') { } |
|
2 |
10 |
elsif ($cmd eq 'replace') { } |
|
6 |
4 |
elsif ($cmd eq 'cas') { } |
|
2 |
2 |
elsif ($cmd eq 'prepend') { } |
|
2 |
0 |
elsif ($cmd eq 'append') { } |
168
|
1 |
1 |
if ($_[0]) { } |
169
|
1 |
0 |
unless $noreply |
178
|
1 |
1 |
if ($_[0]) { } |
182
|
1 |
0 |
unless $noreply |
188
|
4 |
2 |
if ($_[0]) { } |
189
|
3 |
1 |
if ($$self{'no_extra'} or $$self{'extra_data'}{$key}[2] == $cas) { } |
193
|
1 |
0 |
unless $noreply |
197
|
2 |
0 |
unless $noreply |
203
|
1 |
1 |
if ($_[0]) { } |
207
|
1 |
0 |
unless $noreply |
213
|
1 |
1 |
if ($_[0]) { } |
217
|
1 |
0 |
unless $noreply |
223
|
0 |
0 |
unless $noreply |
243
|
15 |
6 |
if (shift @status) |
244
|
3 |
12 |
$$self{'no_extra'} ? : |
245
|
2 |
2 |
$$self{'no_extra'} ? : |
|
4 |
11 |
if $cmd eq 'gets' |
253
|
0 |
21 |
if $end and $curr == $n |
256
|
19 |
0 |
if ($curr == $n) { } |
265
|
2 |
0 |
if (not $noreply) |
266
|
1 |
1 |
if ($_[0]) { } |
277
|
3 |
2 |
if ($_[0]) { } |
278
|
1 |
2 |
if ($cmd eq 'incr') { } |
285
|
1 |
1 |
if $val < 0 |
287
|
3 |
0 |
unless $noreply |
290
|
2 |
0 |
unless $noreply |
299
|
2 |
0 |
unless $noreply |
303
|
0 |
0 |
unless $1 |
339
|
0 |
0 |
unless $$_[0] ne $_[0] |
365
|
14 |
0 |
if ($status == 1) { } |
|
0 |
0 |
elsif ($status == -1) { } |
|
0 |
0 |
elsif ($status == -2) { } |
366
|
0 |
14 |
if $expire > 0 and $expire <= 2592000 |
367
|
11 |
3 |
unless ($$self{'no_extra'}) |
368
|
5 |
6 |
if ($expire < 0) { } |
375
|
11 |
3 |
unless $noreply |
376
|
3 |
11 |
if ref $noreply eq 'CODE' |
394
|
7 |
3 |
if ($$self{'no_extra'} or exists $$self{'extra_data'}{$key}) { } |
395
|
7 |
0 |
if ($$self{'no_extra'} or not $$self{'extra_data'}{$key}[0] or $$self{'extra_data'}{$key}[0] > time) { } |
409
|
22 |
8 |
if ($$self{'no_extra'} or exists $$self{'extra_data'}{$key}) { } |
410
|
22 |
0 |
if ($$self{'no_extra'} or not $$self{'extra_data'}{$key}[0] or $$self{'extra_data'}{$key}[0] > time) { } |
424
|
1 |
1 |
if ($$self{'no_extra'} or exists $$self{'extra_data'}{$key}) { } |
426
|
1 |
0 |
!$$extra_data[0] || $$extra_data[0] > time ? : |
443
|
2 |
2 |
if (exists $$self{'cmd'}{'_begin'}) { } |
453
|
0 |
0 |
if (exists $$self{'cmd'}{'_end'}) { } |