Branch Coverage

blib/lib/Github/Hooks/Receiver.pm
Criterion Covered Total %
branch 14 20 70.0


line true false branch
25 0 9 if ($req->method ne 'POST')
31 2 7 if (lc $req->header('content-type') eq 'application/json') { }
6 1 elsif (lc $req->header('content-type') eq 'application/x-www-form-urlencoded') { }
36 1 8 unless my $payload = eval { do { decode_json $payload_json } }
45 8 0 if (my $code = $self->events->{''})
48 5 3 if (my $code = $self->events->{$event_name})
55 2 2 if ($self->secret)
67 4 4 if (ref $event eq 'CODE')
76 0 0 @_ == 1 ? :
80 0 0 if $server