Branch Coverage

File:blib/lib/Database/BI/Controller/Dashboard.pm
Coverage:87.9%

line%coveragebranch
83100TF@args ? :
113100TFunless $url =~ m(\Ahttps?://([^/:?\[\]#]+))iu
117100TFif $host eq "localhost" or $host =~ /\A127\./u or $host eq "0.0.0.0" or $host eq "::1"
125100TFunless $host =~ /\A\d{1,3}(?:\.\d{1,3}){3}\z/u
127100TFunless my $packed = inet_aton($host)
130100TFif ($n & 4278190080) == 167772160
131100TFif ($n & 4293918720) == 2886729728
132100TFif ($n & 4294901760) == 3232235520
133100TFif ($n & 4294901760) == 2851995648
134100TFif ($n & 4290772992) == 1681915904
174100TFif ($lang ne $default)
177100TFunless -d $dir
19750TFunless -d $dir
20050TFunless $base =~ /$EXT_RE/u
217100TFif ($spec =~ /\Atable:([A-Za-z0-9_]+)\z/u) { }
100TFelsif ($spec =~ /\Apath:(.+)\z/u) { }
100TFelsif ($spec =~ /$URL_SPEC_RE/u) { }
220100TFunless grep {-f $data_dir->child("$table.$_");} @SUPPORTED_EXT
22250TFif $src and not $@
226100TFif (defined $file and -f $file and $file->basename =~ /$EXT_RE/u)
23050TFif $src and not $@
235100TFunless _is_safe_url($url)
23750TFif $src and not $@
249100TFif $spec =~ /\Atable:([A-Za-z0-9_]+)\z/u
250100TFif $spec =~ /\Apath:(.+)\z/u
251100TFif $spec =~ /$URL_SPEC_RE/u
270100TFif $cols
271100TFunless $records->[0]
274100TF$c && $all{$c} ? :
316100TFunless length($col // "") and defined $op and length $op
321100TF$op eq 'notempty' ? :
100TF$op eq 'empty' ? :
100TF$op eq 'ge' ? :
100TF$op eq 'gt' ? :
100TF$op eq 'le' ? :
100TF$op eq 'lt' ? :
100TF$op eq 'starts' ? :
100TF$op eq 'contains' ? :
100TF$op eq 'ne' ? :
100TF$op eq 'eq' ? :
354100TFunless length($col // "") and defined $op and length $op
391100TF$left_set{$col} ? :
437100TFunless $seen{$col}++
448100TF$has_col{$_} ? :
466100TF$f =~ /[,"\r\n]/u ? :
497100TFif (opendir my $dh, $dir->to_string)
499100TFif $entry eq "." or $entry eq ".." or $entry =~ /\A\./u
501100TFif (-d $f) { }
100TFelsif ($want_files and $entry =~ /$EXT_RE/u) { }
529100TFunless @$columns
540100TFif ($@ or not $dbh)
550100TFif (@$records)
561100TFif (my $err = $@)
584100TFunless $left_src
58750TFif $@
59550TFunless defined $right_spec and defined $left_key and defined $right_key
59750TFunless $col_set{$left_key}
59950TFunless $right_src
60150TFif $@
60450TFunless $right_set{$right_key}
615100TFif (@cspecs)
61950TFunless $csrc
62150TFif $@
62550TFif (@sources > 1)
810100TFunless (defined $table and $table =~ /$TABLE_NAME_RE/u)
816100TFif ($@)
895100TFunless defined $dir and -d $dir
91450TFunless length $name
917100TFif $parent->to_string eq $f->to_string
92350TF$parent->to_string ne $dir->to_string ? :
1016100TFunless defined $file_path
1019100TFunless defined $file and -f $file and $file->basename =~ /$EXT_RE/u
1031100TFif ($@)
1111100TFunless $idx =~ /\A[0-9]+\z/u
1124100TFunless length $url
1125100TFunless $url =~ m[\Ahttps?://]iu
1127100TFunless _is_safe_url($url)
1131100TFif $@ or not $source
1134100TFif $@
1207100TFif (defined $table_name and $table_name =~ /$TABLE_NAME_RE/u) { }
100TFelsif (defined $path) { }
1210100TFunless grep {-f $data_dir->child(lc($table_name) . ".$_");} @SUPPORTED_EXT
1215100TFif (defined $file and -f $file and $file->basename =~ /$EXT_RE/u)
1222100TFunless $source
1225100TF$source->columns ? :
1287100TFunless $left_src
129050TFif ($@)
130950TFunless defined $right_spec and defined $left_key and defined $right_key
131350TFunless $col_set{$left_key}
1316100TFunless $right_src
131950TFif $@
132250TFunless $right_set{$right_key}
1335100TFif @summaries
141650TFunless $left_src
141950TFif ($@)
143950TFunless $csrc
144150TFif $@
144750TF@sources > 1 ? :
145550TFif @summaries
1538100TFunless $records
1541100TFunless $format eq "sqlite"
1544100TF$format eq 'sqlite' ? :
1623100TFunless (defined $dest_dir and -d $dest_dir)
1633100TFif ($filename and $filename =~ /\.csv\z/iu) { }
100TFelsif ($filename and $filename =~ /\.sql\z/iu) { }
1643100TFunless $records
1648100TFif ($format eq 'csv') { }
165550TFif $@
1706100TFunless defined $dir and -d $dir
1716100TF$parent->to_string ne $dir->to_string ? :
1772100TFunless (defined $path and length $path)
1782100TFunless defined $file and -f $file and $file->basename =~ /$EXT_RE/u
1839100TFunless ($upload and $upload->filename)
1851100TFif ($self->req->is_limit_exceeded or $upload->size > $MAX_UPLOAD_BYTES)
1861100TFunless ($filename and $filename =~ /$EXT_RE/u)
1873100TFunless -d $uploads_base