Condition Coverage

blib/lib/RPC/Serialized.pm
Criterion Covered Total %
condition 17 42 40.4


and 3 conditions

line !l l&&!r l&&r condition
32 0 17 0 exists $params->me->{'ifh'} and not _is_valid_input_handle($params->me->{'ifh'})
36 0 17 0 exists $params->me->{'ofh'} and not _is_valid_output_handle($params->me->{'ofh'})
48 0 0 34 defined $h and ref $h
0 0 34 defined $h and ref $h and $h->can('error')
57 0 0 17 _is_valid_handle($h) and $h->can('getline')
0 0 17 _is_valid_handle($h) and $h->can('getline') and $h->can('eof')
66 0 0 17 _is_valid_handle($h) and $h->can('print')
0 0 17 _is_valid_handle($h) and $h->can('print') and $h->can('autoflush')
0 0 17 _is_valid_handle($h) and $h->can('print') and $h->can('autoflush') and $h->can('error')
85 0 0 2 $io->print($send_data . ($send_data =~ /\n$/ ? '' : "\n") . "$TERMINATOR\n") and not $io->error
91 0 0 40 $io->print($self->ds->serialize($data) . "\n") and not $io->error
103 2 0 10 $_ = $io->getline and not $io->error
116 5 0 46 defined $data and length $data

or 3 conditions

line l !l&&r !l&&!r condition
133 1 0 42 not defined $data or $data == 1