Branch Coverage

lib/Rex/Interface/Exec/IOReader.pm
Criterion Covered Total %
branch 22 38 57.8


line true false branch
24 0 2 if (exists $rex_int_conf->{'read_buffer_size'})
35 4 15486 unless $len
40 247 15243 if $fh == $out_fh
41 15243 247 if $fh == $err_fh
43 1 15489 if ($buf =~ /\n/u) { }
47 0 1 unless ($buf =~ /\n$/u)
52 0 1 if ($fh == $out_fh) { }
1 0 elsif ($fh == $err_fh) { }
55 0 0 if ($self->execute_line_based_operation($out_line, $option))
61 0 1 if ($self->execute_line_based_operation($err_line, $option))
66 0 1 if ($partial_last_chunk)
67 0 0 if $fh == $out_fh
68 0 0 if $fh == $err_fh
73 247 15242 if $fh == $out_fh
74 15242 247 if $fh == $err_fh
79 1 1 unless ($out)
82 0 1 if ($self->execute_line_based_operation($out, $option))
85 0 2 unless ($err)
88 0 0 if ($self->execute_line_based_operation($err, $option))