Branch Coverage

blib/lib/Pg/Explain/From.pm
Criterion Covered Total %
branch 84 94 89.3


line true false branch
60 223 993 if 0 < scalar @_
105 6 572 if ($use_type eq 'ModifyTable') { }
48 524 elsif ($use_type eq 'Aggregate') { }
107 6 0 if ($struct->{'Relation Name'})
109 0 6 if $struct->{'Alias'} and $struct->{'Alias'} ne $struct->{'Relation Name'}
115 6 42 if $strategy eq "Hashed"
116 3 45 if $strategy eq "Sorted"
117 2 46 if $strategy eq "Mixed"
119 6 572 if (($struct->{'Scan Direction'} || '') eq "Backward")
136 0 578 if (defined $struct->{'Actual Startup Time'} and not $struct->{'Actual Loops'})
142 269 309 if ($struct->{'Node Type'} =~ /\A(?:Seq Scan|Bitmap Heap Scan)$/u) { }
6 303 elsif ($struct->{'Node Type'} eq 'Function Scan') { }
6 297 elsif ($struct->{'Node Type'} eq 'Bitmap Index Scan') { }
24 273 elsif ($struct->{'Node Type'} =~ /\AIndex(?: Only)? Scan(?: Backward)?\z/u) { }
9 264 elsif ($struct->{'Node Type'} eq 'CTE Scan') { }
2 262 elsif ($struct->{'Node Type'} eq 'Subquery Scan') { }
3 259 elsif ($struct->{'Node Type'} eq 'WorkTable Scan') { }
199 9 569 if ($struct->{'Group Key'})
204 2 576 if ($struct->{'Grouping Sets'})
215 15 563 if $struct->{'Workers Planned'}
216 15 563 if ($struct->{'Workers Launched'})
221 6 572 if ($struct->{'Recheck Cond'})
223 3 3 if ($struct->{'Rows Removed by Index Recheck'})
228 3 575 if ($struct->{'Join Filter'})
230 3 0 if ($struct->{'Rows Removed by Join Filter'})
235 19 559 if $struct->{'Index Cond'}
237 209 369 if ($struct->{'Filter'})
239 209 0 if (defined $struct->{'Rows Removed by Filter'})
244 12 566 if ($struct->{'Node Type'} eq "Sort")
245 9 3 if ("ARRAY" eq ref $struct->{'Sort Key'})
248 9 3 if ($struct->{'Sort Method'})
256 6 572 if $struct->{'Heap Fetches'}
261 1150 6 unless $struct->{$key}
264 6 572 if 0 < scalar @heap_blocks_info
267 95 483 if $buffers
269 3 575 if ($struct->{'Conflict Resolution'})
271 3 0 if ($struct->{'Conflict Arbiter Indexes'})
274 3 0 if ($struct->{'Conflict Filter'})
276 3 0 if (defined $struct->{'Rows Removed by Conflict Filter'})
282 3 575 if defined $struct->{'Tuples Inserted'}
284 3 575 if defined $struct->{'Conflicting Tuples'}
286 346 232 if ($struct->{'Plans'})
288 0 346 if ('HASH' eq ref $struct->{'Plans'}) { }
297 15 340 if ($parent_relationship eq 'InitPlan') { }
3 337 elsif ($parent_relationship eq 'SubPlan') { }
298 9 6 if ($subplan->{'Subplan Name'} =~ / \A \s* CTE \s+ (\S+) \s* \z /msux) { }
6 0 elsif ($subplan->{'Subplan Name'} =~ / \A InitPlan \s+ (\d+) \s+ \(returns \s+ ( .* )\) \z/msux) { }