Branch Coverage

blib/lib/Person/ID/CZ/RC/Generator.pm
Criterion Covered Total %
branch 32 32 100.0


line true false branch
53 1 13 if (&none(sub {
58 5 8 if (defined $self->{'serial'})
59 1 4 if (not $self->{'serial'} =~ /^\d+$/ms) { }
1 3 elsif ($self->{'serial'} < 1) { }
1 2 elsif ($self->{'serial'} > 999) { }
69 1 9 if (defined $self->{'sex'} and &none(sub {
76 3 6 if (defined $self->{'year'})
77 1 2 if ($self->{'year'} < $YEAR_FROM) { }
1 1 elsif ($self->{'year'} > $YEAR_TO) { }
111 7 5 unless (defined $sex)
112 4 3 int rand 2 ? :
117 8 4 if ($sex eq "female")
122 5 7 if ($self->{'alternate'})
131 11 1 unless (defined $serial)
137 7 5 if ($date->year > 1954)
154 1 6 if ($num_11 == 10) { }