Branch Coverage

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


line true false branch
269 0 0 unless $result
279 0 0 if ($@)
313 0 0 if ($@)
319 0 0 if (exists $json->{"type"} and $json->{"type"} eq "pong") { }
320 0 0 if ($json->{"id"} ne $self->lastPing) { }
328 0 0 if (exists $json->{"data"} and exists $json->{"data"}{"eventType"} and exists $json->{"data"}{"activity"}) { }
331 0 0 unless defined $eventType
332 0 0 if (exists $activity->{"verb"}) { }
334 0 0 unless defined $verb
335 0 0 if ($eventType eq "conversation.activity") { }
336 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) { }
337 0 0 if (exists $activity->{"actor"})
340 0 0 if ($self->currentUser->{"displayName"} eq $actor->{"displayName"})
379 0 0 defined $json->{"data"}{"eventType"} ? :
380 0 0 defined $json->{"data"}{"activity"}{"verb"} ? :
384 0 0 defined $json->{"data"}{"eventType"} ? :
385 0 0 defined $json->{"data"}{"activity"}{"verb"} ? :
418 0 0 if $self->connection
439 0 0 unless ($self->connection)
480 0 0 if (-r $lc)
482 0 0 unless $fh
488 0 0 if ($@)
511 0 0 unless $fh
528 0 0 unless $result
531 0 0 unless exists $json->{"url"}
554 0 0 if ($result)
574 0 0 if ($result) { }