Branch Coverage

blib/lib/Games/Go/AGA/Parse/Register.pm
Criterion Covered Total %
branch 49 70 70.0


line true false branch
32 0 3 if (@_ > 1)
41 0 3 if (@_ > 1)
50 0 9 if (@_ > 1)
59 3 3 if (@_ > 1)
61 1 2 if is_Rating($new)
69 0 3 if (@_ > 1)
78 0 3 if (@_ > 1)
87 0 5 if (@_ > 1)
96 0 4 if (@_ > 1)
105 0 1 if (@_ > 1)
108 1 0 defined $$self{'value'} ? :
115 0 0 if ($self->id) { }
0 0 elsif ($self->directive) { }
135 0 0 wantarray ? :
142 3 3 if ($self->id) { }
1 2 elsif ($self->directive) { }
167 0 6 wantarray ? :
209 0 8 unless $string
226 1 46 if ($token eq "\n") { }
16 30 elsif (not $token =~ /\S/ or $token eq '') { }
6 24 elsif ($token eq '#') { }
24 0 elsif (exists $state_functions{$state}) { }
251 4 3 if (exists $$self{'id'})
252 4 0 if exists $$self{'last_name'}
253 3 1 if exists $$self{'first_name'}
257 1 3 if (@missing)
265 2 1 if (exists $$self{'comment'})
278 0 5 unless (is_ID($id))
291 4 6 if ($token eq ',')
292 3 1 if (exists $$self{'last_name'}) { }
301 1 5 if (is_Rank_or_Rating($token))
312 2 4 if (is_Rank_or_Rating($token))
324 1 2 if ($flags_ref and @{$flags_ref;} and $$flags_ref[-1] eq '=') { }
335 1 0 if ($key eq 'CLUB') { }
353 1 5 if ($token =~ /\A#\s*(\w+)\s*(.*)/) { }