Branch Coverage

blib/lib/AnyEvent/Twitter/Stream.pm
Criterion Covered Total %
branch 0 50 0.0


line true false branch
57 0 0 unless (delete $args{'no_decode_json'})
63 0 0 if (delete $args{'use_compression'})
69 0 0 unless $zlib
72 0 0 unless ($methods{$method} or exists $args{'api_url'})
81 0 0 if ($request_method eq 'POST') { }
88 0 0 if ($consumer_key) { }
90 0 0 if $@
92 0 0 $request_method eq 'POST' ? :
118 0 0 $timeout ? :
125 0 0 if (not $json =~ /^\s*$/) { }
126 0 0 $decode_json ? :
127 0 0 if ($on_delete and $$tweet{'delete'} and $$tweet{'delete'}{'status'}) { }
0 0 elsif ($on_friends and $$tweet{'friends'}) { }
0 0 elsif ($on_direct_message and $$tweet{'direct_message'}) { }
0 0 elsif ($on_event and $$tweet{'event'}) { }
159 0 0 if ($$headers{'Status'} ne '200')
169 0 0 unless $handle
175 0 0 unless $line =~ /^([0-9a-fA-F]+)/
183 0 0 if (not $$headers{'content-encoding'}) { }
0 0 elsif ($$headers{'content-encoding'} =~ /deflate|gzip/) { }
192 0 0 unless $_zstatus == Z_OK() or $_zstatus == Z_BUF_ERROR()
218 0 0 if (($$headers{'transfer-encoding'} || '') =~ /\bchunked\b/i) { }
231 0 0 if $handle
236 0 0 defined $zlib ? :
0 0 $request_method eq 'POST' ? :