Branch Coverage

blib/lib/App/Table2YAML/Serializer.pm
Criterion Covered Total %
branch 22 26 84.6


line true false branch
23 0 6 unless @table
34 0 1752 if not $self->allow_nulls and $data eq 'null'
38 408 0 if (@row)
83 0 1752 if (not defined $_ or $_ eq '' or /^\p{IsSpace}+$/msux)
93 513 1239 if ($scalar_value eq 'string') { }
18 1221 elsif ($scalar_value eq 'inf_or_nan') { }
113 1176 576 if ($nv != 0) { }
114 9 1167 if ($nv == 36) { }
15 1152 elsif ($nv == 20 or $nv == 28) { }
118 6 9 if (first sub { case_fold($value) eq $_; } , 'infinity', '-infinity', '+infinity') { }
128 36 540 if (first sub { case_fold($value) eq $_; } , 'y', 'true', 'yes', 'on', 'n', 'false', 'no', 'off') { }
3 537 elsif (first sub { case_fold($value) eq $_; } , '~', 'null') { }
30 507 elsif ($value =~ /^[+-]?0x[0-9A-F]+$/imsux or $value =~ /^[+-]?(?:[0-9]{1,3})(?:_[0-9]{3})*(?:\.[0-9]+)?$/msux) { }