Branch Coverage

blib/lib/AnyEvent/SparkBot.pm
Criterion Covered Total %
branch 0 60 0.0


line true false branch
270 0 0 unless $result
280 0 0 if ($@)
314 0 0 if ($@)
320 0 0 if (exists $json->{"type"} and $json->{"type"} eq "pong") { }
321 0 0 if ($json->{"id"} ne $self->lastPing) { }
329 0 0 if (exists $json->{"data"} and exists $json->{"data"}{"eventType"} and exists $json->{"data"}{"activity"}) { }
332 0 0 unless defined $eventType
333 0 0 if (exists $activity->{"verb"}) { }
335 0 0 unless defined $verb
336 0 0 if ($eventType eq "conversation.activity") { }
337 0 0 if ($verb =~ /post|share/u) { }
0 0 elsif ($verb eq "add" and $activity->{"object"}{"objectType"} eq "person") { }
0 0 elsif ($verb eq "create") { }
0 0 elsif ($verb =~ /lock|unlock|update/u) { }
338 0 0 if (exists $activity->{"actor"})
341 0 0 if ($self->currentUser->{"displayName"} eq $actor->{"displayName"})
380 0 0 defined $json->{"data"}{"eventType"} ? :
381 0 0 defined $json->{"data"}{"activity"}{"verb"} ? :
385 0 0 defined $json->{"data"}{"eventType"} ? :
386 0 0 defined $json->{"data"}{"activity"}{"verb"} ? :
419 0 0 if $self->connection
440 0 0 unless ($self->connection)
481 0 0 if (-r $lc)
483 0 0 unless $fh
489 0 0 if ($@)
512 0 0 unless $fh
529 0 0 unless $result
532 0 0 unless exists $json->{"url"}
555 0 0 if ($result)
575 0 0 if ($result) { }