Branch Coverage

blib/lib/Pg/Explain/Hinter.pm
Criterion Covered Total %
branch 37 50 74.0


line true false branch
58 0 43 unless "Pg::Explain" eq ref $plan
74 43 168 if 0 < scalar @_
86 43 127 if 0 < scalar @_
98 42 1 if 0 < scalar @{$self->hints;}
110 1 42 unless $self->plan->top_node->is_analyzed
115 0 43 unless $node->actual_loops
135 42 1 unless $node->type eq "Sort"
136 0 1 unless $node->extra_info
138 1 1 unless $info =~ /\ASort Method:.*Disk:\s*(\d+)kB\s*\z/u
160 1 42 unless $node->type =~ /\A(?:Parallel )?Seq Scan\z/u
161 0 42 unless $node->estimated_row_width
162 1 41 unless $node->total_rows_removed
163 0 41 unless $node->extra_info
166 0 41 unless ($node->total_rows + $node->total_rows_removed) * $node->estimated_row_width > 24576
169 0 41 unless $node->total_rows_removed > $node->total_rows * 2
172 2 40 unless $line =~ / \A Filter: \s+ \( ("[^"]+"|[a-z0-9_]+) \s (=|<|>|>=|<=) \s (?: ' (?: [^'] | '' ) * ' (?: :: (?: "[^"]+" | [a-z0-9_ ]+ ) )? | \d+ ) \) \z /msux
199 0 41 if 1 != scalar @filter_lines
213 1 42 unless $node->type =~ /\A(?:Parallel )?Seq Scan\z/u
214 0 42 unless $node->estimated_row_width
215 1 41 unless $node->total_rows_removed
216 0 41 unless $node->extra_info
219 0 41 unless ($node->total_rows + $node->total_rows_removed) * $node->estimated_row_width > 24576
222 0 41 unless $node->total_rows_removed > $node->total_rows * 2
241 80 1 unless $line =~ / \A Filter: \s+ \( ( $single_condition (?: \s+ AND \s+ $single_condition )+ ) \) \z /msux
271 0 41 if 1 != scalar @filter_lines