Branch Coverage

blib/lib/Business/Tax/ID/PPH21.pm
Criterion Covered Total %
branch 18 60 30.0


line true false branch
115 0 2 unless my $year = $args{'year'}
122 0 2 if ($year >= 2022 and $year <= $latest_supported_year) { }
2 0 elsif ($year >= 2009 and $year <= 2022) { }
0 0 elsif ($year >= 2000 and $year <= 2008) { }
194 0 3 unless my $year = $args{'year'}
200 4 0 $has_ki ? :
207 3 0 if ($year >= 2016 and $year <= $latest_supported_year) { }
0 0 elsif ($year >= 2015 and $year <= 2015) { }
0 0 elsif ($year >= 2013 and $year <= 2014) { }
0 0 elsif ($year >= 2009 and $year <= 2012) { }
0 0 elsif ($year >= 2006 and $year <= 2008) { }
0 0 elsif ($year >= 2005 and $year <= 2005) { }
0 0 elsif ($year >= 2001 and $year <= 2004) { }
0 0 elsif ($year >= 1994 and $year <= 2000) { }
0 0 elsif ($year >= 1983 and $year <= 1994) { }
240 1 5 $_[0] < $_[1] ? :
263 0 3 unless my $year = $args{'year'}
270 0 3 unless $res->[0] == 200
272 0 3 unless my $ptkp = $ptkps->{$tp_status}
276 1 2 if $pkp <= 0
279 0 2 unless $res->[0] == 200
284 6 1 if (defined $bracket->{'max'}) { }
287 1 5 if $pkp <= $bracket->{'max'}
329 0 0 unless my $year = $args{'year'}
336 0 0 unless $res->[0] == 200
338 0 0 unless my $ptkp = $ptkps->{$tp_status}
342 0 0 unless $res->[0] == 200
347 0 0 if (defined $bracket->{'max'}) { }
350 0 0 if ($pph21_op <= $bracket_tax) { }
362 0 0 $args{'monthly'} ? :