Branch Coverage

blib/lib/Plack/App/PubSubHubbub/Subscriber.pm
Criterion Covered Total %
branch 3 22 13.6


line true false branch
100 1 0 $self->config->token_in_path ? :
103 1 0 if ($req->method eq 'POST') { }
0 0 elsif ($req->method eq 'GET') { }
104 1 0 if (my $ping_cb = $self->on_ping)
111 0 0 unless my $mode = $$p{'hub.mode'}
114 0 0 if ($mode eq 'subscribe' or $mode eq 'unsubscribe') { }
116 0 0 unless my $topic = $$p{'hub.topic'}
118 0 0 unless my $challenge = $$p{'hub.challenge'}
120 0 0 unless my $lease = $$p{'hub.lease_seconds'}
125 0 0 if ($self->on_verify->($topic, $token, $mode, $lease)) { }
165 0 0 if $msg