Branch Coverage

blib/lib/Pg/Explain/FromJSON.pm
Criterion Covered Total %
branch 31 36 86.1


line true false branch
61 73 1 if (1 < scalar @source_lines)
68 3885 69 unless $l =~ /\A (\s*) \[ \s* \z /ux
72 69 4 if (defined $prefix)
82 70 4 if ('ARRAY' eq ref $struct and defined $struct->[0]{'Plan'}) { }
4 0 elsif ('HASH' eq ref $struct and defined $struct->{'Plan'}) { }
100 4 70 if ($struct->{'Planning'}) { }
52 18 elsif ($struct->{'Planning Time'}) { }
103 3 1 if $buffers
108 56 18 if $struct->{'Execution Time'}
109 9 65 if $struct->{'Total Runtime'}
110 65 9 if ($struct->{'Triggers'})
113 2 0 if defined $t->{'Calls'}
114 2 0 if defined $t->{'Time'}
115 2 0 if defined $t->{'Relation'}
116 2 0 if defined $t->{'Trigger Name'}
120 1 73 if $struct->{'JIT'}
122 4 70 if $struct->{'Query Text'}
124 2 72 if $struct->{'Settings'} and 0 < scalar keys %{$$struct{"Settings"};}