Branch Coverage

blib/lib/App/GitHooks/Plugin/PgBouncerAuthSyntax.pm
Criterion Covered Total %
branch 15 20 75.0


line true false branch
115 0 21 unless defined $regex
156 0 10 if $git_action eq 'D'
161 0 10 if not defined $comments_setting or $comments_setting eq ''
163 0 10 unless $comments_setting =~ /^(?:allow_anywhere|allow_end_only|disallow)$/x
178 0 21 if not defined $line or $line eq ''
181 5 16 if (substr($line, 0, 1) eq ';')
187 2 3 if ($comments_setting eq 'disallow')
200 1 15 if ($comments_detected and $comments_setting eq 'allow_end_only')
216 12 3 if $line =~ / ^ "[^"]*" # Username. \ # Space. "[^"]*" # Password. (?:\ .*)? # Remainder of the line, no specific format required except # for a space if anything follows. $ /x
235 6 4 if scalar @issues != 0