Branch Coverage

blib/lib/Net/GPSD3.pm
Criterion Covered Total %
branch 5 52 9.6


line true false branch
73 0 0 if (@_)
77 0 0 unless defined $$self{'host'}
91 0 0 if (@_)
95 0 0 unless defined $$self{'port'}
111 0 0 unless $self->cache->DEVICES
119 0 0 unless $object->class eq 'POLL'
135 0 0 unless scalar @handler
174 0 0 if @_
189 0 0 unless ref $$self{'handler'}
190 0 0 wantarray ? :
201 0 0 unless defined $$self{'cache'}
216 0 0 if ($object->class eq 'TPV') { }
0 0 elsif ($object->class eq 'SKY') { }
0 0 elsif ($object->class eq 'SUBFRAME') { }
0 0 elsif ($object->class eq 'VERSION') { }
0 0 elsif ($object->class eq 'WATCH') { }
0 0 elsif ($object->class eq 'DEVICES') { }
0 0 elsif ($object->class eq 'DEVICE') { }
0 0 elsif ($object->class eq 'ERROR') { }
253 0 0 if ($device->activated) { }
293 0 0 unless (defined $$self{'socket'} and defined $$self{'socket'}->connected)
299 0 0 unless defined $$self{'socket'}
314 11 41 unless ref $$self{'json'} eq 'JSON::XS'
331 0 11 if ($@)
334 11 0 wantarray ? :
370 0 52 if ($@) { }