Branch Coverage

blib/lib/App/GitHooks/Plugin/ForceRegularUpdate.pm
Criterion Covered Total %
branch 12 18 66.6


line true false branch
118 0 4 unless defined $max_update_age
122 0 4 unless $max_update_age =~ /^\d+$/
127 0 4 unless defined $description and $description =~ /\w/
133 4 0 if (defined $env_variable)
135 0 4 unless defined $env_regex
138 1 3 unless ($ENV{$env_variable} // '') =~ /$env_regex/
144 0 3 unless defined $update_file
152 1 2 unless (-e $update_file)
165 1 1 if (not defined $last_update && $last_update =~ /^\d+$/ or $last_update < time - $max_update_age or $last_update > time + 10)