Condition Coverage

blib/lib/IPC/Open3/Callback/Command.pm
Criterion Covered Total %
condition 28 43 65.1


and 3 conditions

line !l l&&!r l&&r condition
78 5 0 2 $cp_options{'archive'} and $cp_options{'archive'} eq 'zip'
95 0 0 1 $source_command_options && $source_command_options->get_sudo_username
114 0 2 3 $destination_command_options && $destination_command_options->get_sudo_username
234 2 0 3 defined $write_options and defined $write_options->{'mode'}
252 2 1 2 defined $write_options && defined $write_options->{'line_separator'}
324 2 0 3 exists $instance->{'hostname'} and not exists $options{'hostname'}
327 5 0 0 exists $instance->{'ssh'} and not exists $options{'ssh'}
330 5 0 0 exists $instance->{'username'} and not exists $options{'username'}
333 2 3 0 exists $instance->{'sudo_username'} and not exists $options{'sudo_username'}
336 5 0 0 exists $instance->{'pretty'} and not exists $options{'pretty'}

or 2 conditions

line l !l condition
29 3 10 $batch_options || {}
80 0 2 $cp_options{'unzip_temp_file'} || 'temp_cp_command.zip'
265 1 39 $options->get_ssh || 'ssh'
273 32 51 $wrap_options->{'command_separator'} || ';'
308 29 0 $hostname || 'localhost'

or 3 conditions

line l !l&&r !l&&!r condition
296 5 24 54 defined $username or defined $hostname