| line |
!l |
l&&!r |
l&&r |
condition |
|
41
|
0 |
0 |
74 |
"POSIX"->can("PIPE_BUF") and eval {
do {
&POSIX::PIPE_BUF()
}
} |
|
48
|
0 |
0 |
74 |
"POSIX"->can("SSIZE_MAX") and eval {
do {
&POSIX::SSIZE_MAX()
}
} |
|
64
|
0 |
0 |
74 |
$can_thread &&= $] >= "5.008001" |
|
65
|
0 |
74 |
0 |
$can_thread &&= $Atomic::Pipe::Config{'useithreads'} |
|
68
|
74 |
0 |
0 |
$can_thread and $] == "5.01" |
|
|
74 |
0 |
0 |
$can_thread and $] == "5.01" and $Atomic::Pipe::Config{'ccname'} eq "gcc" |
|
|
0 |
0 |
0 |
$can_thread and $] == "5.01" and $Atomic::Pipe::Config{'ccname'} eq "gcc" and $Atomic::Pipe::Config{'gccversion'} |
|
70
|
0 |
0 |
0 |
$parts[0] == 4 and $parts[1] >= 8 |
|
73
|
74 |
0 |
0 |
$can_thread &&= !$INC{'Devel/Cover.pm'} |
|
214
|
168180 |
1 |
5432666 |
$self->{'in_buffer_size'} and $self->{'in_buffer_size'} >= $size |
|
217
|
7 |
0 |
0 |
$params{'eof_invalid'} and $self->{'eof'} |
|
299
|
91 |
11 |
49 |
defined $buffer->{'lines'} and length $buffer->{'lines'} |
|
300
|
52 |
49 |
1 |
defined $buffer->{'burst'} and length $buffer->{'burst'} |
|
340
|
216 |
6 |
2 |
defined $params{'compression_dictionary'} and defined $params{'compression_dictionary_file'} |
|
344
|
212 |
6 |
4 |
defined $params{'compression_dictionary'} || defined $params{'compression_dictionary_file'} and not defined $params{'compression'} |
|
378
|
0 |
4 |
10 |
@_ and not ref $_[0] |
|
|
4 |
0 |
10 |
@_ and not ref $_[0] and $MODE_TO_DIR{$_[0]} |
|
562
|
322 |
54 |
0 |
$self->eof and keys %{$$self{'state'}{'buffers'};} || keys %{$$self{'state'}{'parts'};} |
|
570
|
118 |
0 |
24 |
$self->{'eof'} and not $self->{'in_buffer_size'} |
|
|
118 |
0 |
24 |
$self->{'eof'} and not $self->{'in_buffer_size'} and defined $line |
|
|
0 |
0 |
24 |
$self->{'eof'} and not $self->{'in_buffer_size'} and defined $line and length $line |
|
573
|
114 |
0 |
4 |
$params{'peek_line'} and defined $line |
|
|
114 |
0 |
4 |
$params{'peek_line'} and defined $line and length $line |
|
580
|
0 |
0 |
0 |
$self->{'eof'} and not $self->{'in_buffer_size'} |
|
640
|
92 |
0 |
4 |
$peek and not $self->{'eof'} |
|
745
|
21 |
1 |
15 |
$self->{'rh'} and not $self->{'wh'} |
|
|
0 |
1 |
21 |
$self->{'wh'} and not $self->{'rh'} |
|
755
|
1 |
0 |
0 |
$r and $w |
|
803
|
0 |
0 |
9 |
$self->{'rh'} and not $self->{'wh'} |
|
809
|
0 |
0 |
8 |
$self->{'wh'} and not $self->{'rh'} |
|
883
|
9 |
3 |
1 |
$cache and $cache->[0] eq $data |
|
921
|
212 |
138 |
2 |
$self->{'wh'} and $self->pending_output |
|
1063
|
21 |
2 |
2 |
$self->{'keep_compressed'} and wantarray |
|
1076
|
7 |
0 |
2800347 |
defined $key_bytes and length $key_bytes |
|
1081
|
5 |
1 |
1 |
$self->{'eof'} and $self->{'in_buffer_size'} |
| line |
l |
!l |
condition |
|
133
|
0 |
0 |
$self->{'read_size'} ||= 65536 |
|
163
|
168448 |
130 |
$self->{'in_buffer_size'} //= 0 |
|
165
|
0 |
168578 |
$self->{'read_size'} || 65536 |
|
171
|
295 |
144100 |
$self->{'read_blocking'} // 1 |
|
245
|
0 |
10 |
$self->{'compression_level'} // 3 |
|
270
|
2 |
37 |
$self->{'compression_level'} // 3 |
|
310
|
8 |
0 |
fcntl($fh, 3, 0) // (return undef) |
|
461
|
0 |
111 |
$self->{'burst_prefix'} //= "\16" |
|
462
|
0 |
111 |
$self->{'burst_postfix'} //= "\17" |
|
463
|
0 |
111 |
$self->{'message_key'} //= "\20" |
|
550
|
145 |
45 |
$self->{'mixed_buffer'} //= {"lines", "", "burst", "", "in_burst", 0, "in_message", 0, "strip_term", 0} |
|
599
|
38 |
0 |
$self->_get_from_buffer(1, "eof_invalid", "EOF before message terminator") // (return) |
|
606
|
68 |
0 |
$self->_peek_from_buffer(1, "eof_invalid", "Incomplete burst data received before end of pipe") // (next) |
|
615
|
27 |
1 |
$buffer->{'burst'} //= "" |
|
675
|
0 |
0 |
'Win32::API'->new('kernel32', 'PeekNamedPipe', 'NPIPPP', 'N') || die(q[Can't load PeekNamedPipe from kernel32.dll]) |
|
695
|
0 |
0 |
'Win32::API'->new('kernel32', 'SetNamedPipeHandleState', 'NPPP', 'N') || die(q[Can't load SetNamedPipeHandleState from kernel32.dll]) |
|
874
|
13 |
96 |
$_[0]{'burst_prefix'} // "" |
|
|
13 |
96 |
$_[0]{'burst_postfix'} // "" |
|
911
|
19748 |
15 |
$self->{'out_buffer'} //= [] |
|
934
|
20023 |
200099 |
($params{'blocking'} // $self->{'write_blocking'}) // 1 |
|
936
|
220126 |
0 |
$self->{'out_buffer'} // (return) |
|
959
|
22 |
820219 |
$self->{'burst_prefix'} // "" |
|
960
|
22 |
820219 |
$self->{'burst_postfix'} // "" |
|
970
|
2 |
256 |
$! == 32 or 0 |
|
975
|
254 |
2 |
$NONBLOCK_ERRNO{0 + $!} or 0 |
|
993
|
8 |
86 |
$self->{'message_key'} // "" |
|
994
|
8 |
86 |
$self->{'burst_prefix'} // "" |
|
995
|
8 |
86 |
$self->{'burst_postfix'} // "" |
|
1008
|
8 |
200116 |
$self->{'message_key'} // "" |
|
1025
|
32 |
45 |
$self->{'out_buffer'} //= [] |
|
1035
|
800104 |
45 |
$self->{'out_buffer'} //= [] |
|
1071
|
700119 |
101 |
$self->{'state'} //= {} |
|
1092
|
2800347 |
0 |
$self->_get_from_buffer($key->{'size'}, "eof_invalid", "EOF before end of message") // (return) |
|
1096
|
2100154 |
700193 |
$state->{'parts'}{$tag} //= [] |
| line |
l |
!l&&r |
!l&&!r |
condition |
|
70
|
0 |
0 |
0 |
$parts[0] > 4 or $parts[0] == 4 and $parts[1] >= 8 |
|
126
|
15 |
22 |
0 |
$self->{'invalid_state'} //= @_ ? shift() : "Unknown Error" |
|
170
|
144294 |
101 |
0 |
$self->{'_select'} //= "IO::Select"->new($rh) |
|
237
|
14 |
8 |
78 |
defined $_[0]{'compression_dictionary'} || defined $_[0]{'compression_dictionary_file'} |
|
266
|
2 |
8 |
0 |
$self->{'_compression_ctx'} //= "Compress::Zstd::CompressionContext"->new |
|
267
|
0 |
10 |
0 |
$self->{'_compression_cdict'} //= $self->_build_cdict |
|
278
|
4 |
8 |
0 |
$self->{'_decompression_ctx'} //= "Compress::Zstd::DecompressionContext"->new |
|
279
|
2 |
10 |
0 |
$self->{'_decompression_ddict'} //= $self->_build_ddict |
|
344
|
6 |
4 |
212 |
defined $params{'compression_dictionary'} || defined $params{'compression_dictionary_file'} |
|
386
|
4 |
0 |
0 |
$class->_fh_mode($ifh) // croak("Could not determine filehandle mode, please specify '>&' or '<&'") |
|
|
9 |
4 |
0 |
$mode //= $class->_fh_mode($ifh) // croak("Could not determine filehandle mode, please specify '>&' or '<&'") |
|
387
|
13 |
0 |
0 |
$class->_mode_to_dir($mode) // croak("Invalid mode: $mode") |
|
401
|
11 |
0 |
0 |
$class->_mode_to_dir($mode) // croak("Invalid mode: $mode") |
|
544
|
190 |
0 |
0 |
$self->{'rh'} // croak("Not a read handle") |
|
546
|
190 |
0 |
0 |
$self->{'burst_prefix'} // croak("missing 'burst_prefix', not in mixed_data_mode") |
|
547
|
190 |
0 |
0 |
$self->{'burst_postfix'} // croak("missing 'burst_postfix', not in mixed_data_mode") |
|
548
|
190 |
0 |
0 |
$self->{'message_key'} // croak("missing 'message_key', not in mixed_data_mode") |
|
562
|
6 |
0 |
48 |
keys %{$$self{'state'}{'buffers'};} || keys %{$$self{'state'}{'parts'};} |
|
564
|
194 |
0 |
176 |
$buffer->{'lines'} or length $buffer->{'lines'} |
|
639
|
112 |
4 |
96 |
$self->{'in_buffer_size'} or $self->fill_buffer |
|
675
|
0 |
0 |
0 |
$peek_named_pipe //= 'Win32::API'->new('kernel32', 'PeekNamedPipe', 'NPIPPP', 'N') || die(q[Can't load PeekNamedPipe from kernel32.dll]) |
|
695
|
0 |
0 |
0 |
$set_named_pipe_handle_state //= 'Win32::API'->new('kernel32', 'SetNamedPipeHandleState', 'NPPP', 'N') || die(q[Can't load SetNamedPipeHandleState from kernel32.dll]) |
|
756
|
0 |
0 |
1 |
$r or $w |
|
763
|
0 |
2 |
0 |
$self->{'wh'} // $self->{'rh'} |
|
772
|
9 |
1 |
0 |
$self->{'wh'} // $self->{'rh'} |
|
791
|
3 |
0 |
0 |
$val + 0 || $ONE_MB |
|
855
|
0 |
0 |
45 |
$self->{'hit_epipe'} or $self->{'invalid_state'} |
|
874
|
0 |
13 |
96 |
$_[0]{'delimiter_size'} //= &bytes::length(scalar($_[0]{'burst_prefix'} // "")) + &bytes::length(scalar($_[0]{'burst_postfix'} // "")) |
|
896
|
8 |
1 |
4 |
$self->{'delimiter_size'} // $self->delimiter_size |
|
908
|
19751 |
8 |
6 |
$self->{'delimiter_size'} // $self->delimiter_size |
|
920
|
2 |
22 |
352 |
$self->{'hit_epipe'} or $self->{'invalid_state'} |
|
934
|
4 |
20023 |
200099 |
$params{'blocking'} // $self->{'write_blocking'} |
|
942
|
800190 |
19795 |
254 |
$blocking or defined $got |
|
962
|
22 |
0 |
820219 |
length $prefix or length $postfix |
|
1009
|
200030 |
94 |
0 |
$self->{'adjusted_dsize'} // $self->_adjusted_dsize |
|
1023
|
32 |
0 |
45 |
$self->{'delimiter_size'} // $self->delimiter_size |
|
1034
|
800104 |
4 |
41 |
$self->{'delimiter_size'} // $self->delimiter_size |