Condition Coverage

blib/lib/App/GitHooks/Utils.pm
Criterion Covered Total %
condition 10 16 62.5


and 3 conditions

line !l l&&!r l&&r condition
189 0 2 1 defined $ticket_id and defined $normalize
2 0 1 defined $ticket_id and defined $normalize and $normalize =~ /\S/
192 0 1 0 defined $match and defined $replacement

or 2 conditions

line l !l condition
52 10 3 $app->get_config->{'_'}{'project_prefixes'} // ''
125 1 1 $app->get_config->get_regex('_', 'extract_ticket_id_from_commit') // '^($project_prefixes-\\d+|--)\\: ?'

or 3 conditions

line l !l&&r !l&&!r condition
172 0 0 3 -d 'File::Spec'->catfile($git_directory, 'rebase-merge') or -d 'File::Spec'->catfile($git_directory, 'rebase-apply')