Branch Coverage

blib/lib/Net/Twitter/Loader.pm
Criterion Covered Total %
branch 34 52 65.3


line true false branch
16 0 7 unless defined $params{'backend'}
30 12 23 defined $$params_ref{$key} ? :
35 29 0 unless defined $$self{'filepath'}
36 0 0 unless open my $file, '<', $$self{'filepath'}
46 0 0 unless defined $since_ids
52 10 43 if defined $$self{'logger'}
57 14 0 unless defined $$self{'filepath'}
58 0 0 unless open my $file, '>', $$self{'filepath'}
70 143 0 defined $$params{$_} ? :
78 0 50 if (not ref $nt_result) { }
47 3 elsif (ref $nt_result eq 'ARRAY') { }
3 0 elsif (ref $nt_result eq 'HASH') { }
83 0 3 if (ref $$nt_result{'statuses'} eq 'ARRAY') { }
3 0 elsif (ref $$nt_result{'results'} eq 'ARRAY') { }
94 14 1 defined $nt_params ? :
95 15 0 unless (defined $method)
99 5 29 defined $params{$_} ? :
103 0 15 if not defined $params{'since_id'} and defined $since_id
104 11 4 defined $params{'since_id'} ? :
105 1 14 if ($method eq 'public_timeline')
114 36 15 if defined $max_id
124 0 50 unless defined $loaded
126 9 41 unless @$loaded
129 15 26 unless defined $next_since_id
134 1 13 if ($load_count == $$self{'page_max'})
137 14 0 if (defined $next_since_id)