Branch Coverage

blib/lib/Date/WeekNumber.pm
Criterion Covered Total %
branch 18 18 100.0


line true false branch
36 6 18 if ($week_number == 0)
45 44 12 if (@_ == 1) { }
2 10 elsif (@_ == 3) { }
8 2 elsif (@_ == 6) { }
48 8 36 if (&reftype($param) and &reftype($param) eq 'HASH') { }
2 34 elsif (&reftype($param)) { }
32 2 elsif ($param =~ /^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$/) { }
51 2 2 if exists $param->{'year'} and exists $param->{'month'} and exists $param->{'day'}
74 2 2 if exists $hashref->{'year'} and exists $hashref->{'month'} and exists $hashref->{'day'}