Branch Coverage

blib/lib/String/UpdateYears.pm
Criterion Covered Total %
branch 14 14 100.0


line true false branch
17 1 10 unless (defined $opts_hr)
20 8 3 unless (exists $opts_hr->{'prefix_glob'})
23 8 3 unless (exists $opts_hr->{'suffix_glob'})
29 5 6 if ($string =~ /^($pg)(\d{4})-(\d{4})($sg)$/ms) { }
5 1 elsif ($string =~ /^($pg)(\d{4})($sg)$/ms) { }
34 4 1 if ($last_year != $new_last_year)
42 4 1 if ($first_year != $new_last_year)