Condition Coverage

blib/lib/Protocol/SocketIO/Message.pm
Criterion Covered Total %
condition 12 18 66.6


and 3 conditions

line !l l&&!r l&&r condition
48 0 0 8 defined $string and $string ne ''

or 3 conditions

line l !l&&r !l&&!r condition
29 15 10 0 $self->{'type'} ||= ref $self->{'data'} ? 'json_message' : 'message'
31 2 1 22 $self->{'type'} eq 'connect' or $self->{'type'} eq 'heartbeat'
41 0 0 0 $self->type eq 'message' || $self->type eq 'json_message'
71 2 2 2 $self->{'type'} eq 'json_message' or $self->{'type'} eq 'event'
102 3 3 12 $self->{'type'} eq 'json_message' or $self->{'type'} eq 'event'