Branch Coverage

blib/lib/TOML/Tiny/Writer.pm
Criterion Covered Total %
branch 35 52 67.3


line true false branch
17 0 757 ref $_[1] eq 'HASH' ? :
29 0 0 if ($$data eq '1') { }
0 0 elsif ($$data eq '0') { }
39 8 7 $$data ? :
43 0 0 $data ? :
55 0 6 if ($data->is_inf or $data->is_nan) { }
66 176 220 if (svref_2object(\$data)->FLAGS & 768)
67 0 176 if 'Math::BigFloat'->new($data)->is_inf
68 0 176 if 'Math::BigFloat'->new($data)->is_inf('-')
69 0 176 if 'Math::BigFloat'->new($data)->is_nan
73 24 196 if $data =~ /$TOML::Tiny::Writer::DateTime/u
74 9 187 if $data =~ /$TOML::Tiny::Writer::SpecialFloat/u
92 0 6 if (ref $value eq 'HASH') { }
118 0 57 unless (@{$data->{$k};})
125 37 20 if (grep {ref $_ ne 'HASH';} @{$$data{$k};}) { }
145 24 136 if (not keys %{$$data{$k};}) { }
164 0 63 if (@$data and $param->{'strict'})
166 0 0 unless $ok
172 5 118 if (ref $item eq 'HASH') { }
185 670 27 if ($str =~ /^$TOML::Tiny::Writer::BareKey$/u)
195 4 23 if ($str =~ /^"/u) { }
240 1 5 if ($dt->time_zone_short_name eq 'floating') { }
1 4 elsif ($dt->time_zone->is_utc) { }
245 2 2 $dt->offset < 0 ? :
254 1 3 if ($secs) { }
263 0 6 $dt->nanosecond ? :