Branch Coverage

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


line true false branch
61 83 1 if (1 < scalar @source_lines)
68 5115 79 unless $l =~ /\A (\s*) \[ \s* \z /ux
72 79 4 if (defined $prefix)
82 80 4 if ('ARRAY' eq ref $struct and defined $struct->[0]{'Plan'}) { }
4 0 elsif ('HASH' eq ref $struct and defined $struct->{'Plan'}) { }
100 10 74 if ($struct->{'Planning'}) { }
56 18 elsif ($struct->{'Planning Time'}) { }
103 9 1 if $buffers
108 66 18 if $struct->{'Execution Time'}
109 9 75 if $struct->{'Total Runtime'}
110 75 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 2 82 if $struct->{'JIT'}
122 4 80 if $struct->{'Query Text'}
124 2 82 if $struct->{'Settings'} and 0 < scalar keys %{$$struct{"Settings"};}