Branch Coverage

blib/lib/App/GHPT/WorkSubmitter.pm
Criterion Covered Total %
branch 14 68 20.5


line true false branch
177 0 0 $host eq 'github.com' ? :
0 0 $self->_has_github_ua ? :
198 0 0 if $self->_has_github_protocol
206 0 0 if $self->_has_github_token
232 4 4 $want ? :
239 8 4 $want ? :
242 1 2 if @projects == 1
251 4 2 $want ? :
254 1 2 if @memberships == 1
270 0 0 unless ($requester)
273 0 0 unless ($chosen_story)
296 0 0 unless defined $qa_markdown and length $qa_markdown
311 0 0 if ($self->create_story)
316 0 0 if ($self->dry_run)
354 0 0 unless @$stories
367 0 0 unless ($story_name)
378 0 0 if $l
384 5 7 $_->story_type eq 'chore' ? :
386 2 1 if $chore_stories
401 0 0 if $result eq "Accept"
407 0 0 $story->description ? :
0 0 $self->_include_requester_name_in_pr ? :
420 0 0 if ($self->dry_run)
436 0 0 unless ($res->success)
446 0 0 if (my $msg = $$content{"message"})
447 0 0 if (my $errors = $$content{"errors"})
458 0 0 if (my($host, $user, $repo) = $git_url =~ m[^git@([^:]+):([^/]+)/([^/]+?)(?:\.git)?$]u)
464 0 0 if ($uri->can("host") and $uri->can("path"))
465 0 0 if (my($user, $repo) = $uri->path =~ m[/([^/]+)/([^/]+?)(?:\.git)?$]u)
488 0 0 if ($error or $?)
489 0 0 defined $error ? :
503 0 0 unless -f $file
516 0 0 if ($error or $?)
517 0 0 defined $error ? :