Branch Coverage

blib/lib/Growl/GNTP.pm
Criterion Covered Total %
branch 1 138 0.7


line true false branch
46 1 0 unless $sock
49 0 0 if (-f $AppIcon)
87 0 0 if ($identifier)
95 0 0 if $self->{'Debug'}
100 0 0 if $ret =~ m[^GNTP/1\.0 -?(\w+)]
101 0 0 if $self->{'Debug'}
104 0 0 if ($ret ne 'OK')
107 0 0 if $self->{'Debug'}
108 0 0 if $_ =~ /^Error-Description:\s*(.*)$/
109 0 0 if length $_ == 0
114 0 0 if $ret ne 'OK'
138 0 0 if (-f $data{'Icon'})
146 0 0 if ($data{'CallbackTarget'})
157 0 0 unless $sock
163 0 0 if $data{'ID'}
164 0 0 if $data{'Priority'}
165 0 0 if $data{'Message'}
166 0 0 if $data{'Sticky'}
167 0 0 if $data{'Icon'}
168 0 0 if $data{'CoalescingID'}
169 0 0 if ($data{'CallbackContext'})
173 0 0 if ($data{'CallbackTarget'})
177 0 0 if (ref $data{'Custom'} eq 'HASH')
183 0 0 if ($identifier) { }
194 0 0 if $self->{'Debug'}
200 0 0 if $ret =~ m[^GNTP/1\.0 -?(\w+)]
201 0 0 if $self->{'Debug'}
204 0 0 if ($ret ne 'OK')
207 0 0 if $self->{'Debug'}
208 0 0 if $_ =~ /^Error-Description:\s*(.*)$/
209 0 0 if length $_ == 0
214 0 0 if $ret ne 'OK'
235 0 0 unless $sock
250 0 0 if $ret =~ m[^GNTP/1\.0 -?(\w+)]
251 0 0 if $self->{'Debug'}
254 0 0 if ($ret ne 'OK')
257 0 0 if $self->{'Debug'}
258 0 0 if $_ =~ /^Error-Description:\s*(.*)$/
259 0 0 if length $_ == 0
261 0 0 if $ret ne 'OK'
270 0 0 unless $sock
278 0 0 if $self->{'Debug'}
279 0 0 if $_ =~ m[^GNTP/1\.0 -?(\w+)]
280 0 0 if $_ =~ /^Error-Description:\s*(.*)$/
281 0 0 if $_ =~ /^Notification-Title: (.*)\r\n/
282 0 0 if $_ =~ /^Notification-Text: (.*)\r\n/
287 0 0 if length $_ == 0
291 0 0 if ($Title and ref $callback eq 'CODE')
296 0 0 if $ret ne 'OK'
308 0 0 unless select $bits, undef, undef, 0.1
312 0 0 if (vec $bits, fileno $sock, 1)
316 0 0 if $self->{'Debug'}
317 0 0 if $_ =~ /^Notification-ID: (.*)$/
318 0 0 if $_ =~ /^Notification-Callback-Timestamp: (.*)$/
319 0 0 if $_ =~ /^Notification-Callback-Result: (.*)$/
320 0 0 if $_ =~ /^Notification-Callback-Context: (.*)$/
321 0 0 if $_ =~ /^Notification-Callback-Context-Type: (.*)$/
322 0 0 if length $_ == 0
324 0 0 if (ref $callback->{'Function'} eq 'CODE')
330 0 0 unless $waitall
334 0 0 if (grep {$_->{'Socket'} eq $self->{'Callbacks'}[$i]{'Socket'};} @old)
347 0 0 if $value =~ /^([Tt]rue|[Yy]es)$/
348 0 0 if $value =~ /^([Ff]alse|[Nn]o)$/
349 0 0 if $value
356 0 0 if ($ctx->{'Password'}) { }
359 0 0 if ($crypt eq 'NONE') { }
382 0 0 if $hash_algorithm eq 'NONE'
401 0 0 if $crypt_algorithm eq 'NONE'
441 0 0 if length $key < 24