Branch Coverage

lib/InfluxDB/LineProtocol.pm
Criterion Covered Total %
branch 47 60 78.3


line true false branch
24 13 7 if ($param eq 'data2line' or $param eq 'line2data')
27 6 14 if ($param =~ /^precision=(\w+)$/)
30 1 0 if ($param =~ /^v[\d\.]+$/ and $versions{$param})
37 2 11 if $version
66 29 24 if ($v =~ /^(-?\d+)(?:i?)$/) { }
3 21 elsif ($v =~ /^[Ff](?:ALSE|alse)?$/) { }
2 19 elsif ($v =~ /^[Tt](?:RUE|rue)?$/) { }
6 13 elsif ($v =~ /^-?\d+(?:\.\d+)?(?:e(?:-|\+)?\d+)?$/) { }
91 0 46 if (@_ == 1)
100 13 33 if (defined $tags)
101 10 3 if (ref $tags eq 'HASH') { }
3 0 elsif (not ref $tags) { }
108 0 15 unless defined $v
113 10 0 if @tags
121 0 46 unless $timestamp =~ /^\d+$/
125 35 11 unless ref $values
194 11 28 if ($fields =~ /"/)
216 0 34 if (@_ == 1)
225 12 22 if (defined $tags)
226 9 3 if (ref $tags eq 'HASH') { }
3 0 elsif (not ref $tags) { }
233 0 13 unless defined $v
238 9 0 if @tags
245 6 28 if ($timestamp) { }
246 0 6 unless $timestamp =~ /^\d+$/
248 0 6 if (length $timestamp < 19)
256 0 28 if length $timestamp < 19
260 25 9 unless ref $values
267 13 3 unless ($v =~ /^-?\d+(?:\.\d+)?(?:e-?\d+)?$/ or $v =~ /^(?:F(?:ALSE)?|f(?:alse)?|T(?:RUE)?|t(?:rue)?)$/)
310 11 23 if ($fields =~ /"/)