Branch Coverage

lib/Badger/Codec/TT.pm
Criterion Covered Total %
branch 25 36 69.4


line true false branch
53 0 27 if (&blessed($data) and &textlike($data))
57 0 27 if (not defined $data) { }
17 10 elsif (not ref $data) { }
3 7 elsif (ref $data eq 'ARRAY') { }
7 0 elsif (ref $data eq 'HASH') { }
62 7 10 if ($data =~ /^ $MATCH_NUMBER $/ox) { }
87 0 14 if ($k =~ /\W/)
104 44 4 ref $_[0] ? :
119 11 37 if ($$text =~ /$MATCH_HASH/cog) { }
10 27 elsif ($$text =~ /$MATCH_LIST/cog) { }
21 6 elsif ($$text =~ /$MATCH_QUOTED/cog) { }
6 0 elsif ($$text =~ /$MATCH_NUMBER/cog) { }
0 0 elsif ($$text =~ /$MATCH_UNDEF/cog) { }
123 23 0 if (defined $1) { }
130 0 23 unless $$text =~ /$MATCH_ASSIGN/cog
135 0 11 unless $$text =~ /$MATCH_END_HASH/cog
142 10 21 if ($$text =~ /$MATCH_END_LIST/cog)
143 10 0 if $1 eq "]"