Branch Coverage

blib/lib/Date/Holidays/CA.pm
Criterion Covered Total %
branch 27 38 71.0


line true false branch
61 1 3 if scalar @_ != 2
65 2 1 if (exists $self->{$field})
75 0 38 if scalar @_ != 2
82 50 0 if ($new_value = _validate($field, $value))
93 3 2 is_ca_holiday(@_) ? :
100 5 0 if ref $_[0]
107 1 4 if (defined $options and defined $options->{'province'})
112 0 5 unless (defined $self)
120 3 53 if ($month == $holiday_dt->month and $day == $holiday_dt->day)
134 0 0 if (ref $_ eq 'DateTime') { }
162 19 3 if ref $_[0]
167 3 19 unless (defined $self)
200 0 53 unless @valid_values
203 50 117 if uc $value eq $valid_value
445 0 0 $self->{'language'} eq 'FR/EN' ? :
66 0 $self->{'language'} eq 'EN/FR' ? :
0 66 $self->{'language'} eq 'FR' ? :
266 66 $self->{'language'} eq 'EN' ? :
513 74 30 if $delta_days > 2