Branch Coverage

blib/lib/Pg/SQL/PrettyPrinter/Node.pm
Criterion Covered Total %
branch 25 36 69.4


line true false branch
56 0 3417 unless defined $data
58 887 2530 if ("ARRAY" eq ref $data)
62 0 2530 unless "HASH" eq ref $data
65 4 2526 if 0 == scalar @all_keys
66 0 2526 unless 1 == scalar @all_keys
68 0 2526 unless $class_suffix =~ /^[A-Z][a-zA-Z0-9_-]+$/u
73 0 2526 if ($Pg::SQL::PrettyPrinter::Node::EVAL_ERROR)
90 352 3311 unless defined $container
91 1393 1918 unless exists $container->{$real_key}
95 0 1918 unless $types_ok{$type}
108 3121 542 if "" eq $type
109 0 542 unless "ARRAY" eq $type
110 0 542 if 0 == scalar @{$path;}
111 0 542 if 1 == scalar @{$path;}
116 352 197 unless exists $container->{$key}
139 0 225 if ($val =~ /$look_for/u)
158 1173 17 if $val =~ /\A[a-z0-9_]+\z/u
173 0 564 unless $levels =~ /\A[1-9]\d*\z/u