Branch Coverage

blib/lib/Mail/Karmasphere/Query.pm
Criterion Covered Total %
branch 33 104 31.7


line true false branch
23 0 12 $#_ == 0 ? :
30 0 12 if (exists $$args{'Id'})
34 0 12 if (exists $$args{'Identities'})
36 0 0 unless ref $identities eq 'ARRAY'
39 0 0 if (ref $identity eq 'ARRAY') { }
48 0 12 if (exists $$args{'Composites'})
50 0 0 unless ref $composites eq 'ARRAY'
55 0 12 if (exists $$args{'Composite'})
59 0 12 if (exists $$args{'Feeds'})
61 0 0 unless ref $feeds eq 'ARRAY'
66 0 12 if (exists $$args{'Combiners'})
68 0 0 unless ref $combiners eq 'ARRAY'
73 0 12 if (exists $$args{'Combiner'})
77 0 12 if (exists $$args{'Flags'})
82 0 12 if (@remain)
92 0 0 if ($identity =~ /^[0-9\.]{7,15}$/) { }
0 0 elsif ($identity =~ /^[0-9a-f:]{2,64}$/i) { }
0 0 elsif ($identity =~ m[^https?://]) { }
0 0 elsif ($identity =~ /@/) { }
0 0 elsif ($identity =~ /\./) { }
113 0 11 if (@_) { }
11 0 elsif (not defined $$self{'Id'}) { }
124 8 0 unless (ref $identity eq 'ARRAY')
126 8 0 if (@tags) { }
135 8 0 if @tags
138 5 1 if ($$_[0] eq $$identity[0] and $$_[1] eq $$identity[1])
151 0 1 if (@_)
160 10 0 unless exists $$self{'Identities'}
161 0 0 unless @{$$self{'Identities'};}
169 0 0 if (ref $composite) { }
0 0 elsif ($composite =~ /^[0-9]+$/) { }
0 0 elsif ($composite =~ /\./) { }
186 0 0 if (@_)
195 10 0 unless exists $$self{'Composites'}
196 0 0 unless @{$$self{'Composites'};}
213 0 1 if (@_)
222 9 1 unless exists $$self{'Feeds'}
223 0 1 unless @{$$self{'Feeds'};}
237 0 0 if (@_)
246 10 0 unless exists $$self{'Combiners'}
247 0 0 unless @{$$self{'Combiners'};}
253 0 0 if (@_)
255 0 0 unless $flags =~ /^[0-9]+$/
263 10 0 unless exists $$self{'Flags'}
264 0 0 unless defined $$self{'Flags'}
270 0 0 unless $$self{'Identities'}
276 1 3 unless defined $ref
287 1 0 if ($$self{'Identities'})
291 1 0 if @t
295 0 1 if ($$self{'Composites'})
300 1 0 if ($$self{'Feeds'})
305 1 0 if ($$self{'Combiners'})