Branch Coverage

File:script/bi-geocode
Coverage:42.2%

line%coveragebranch
7350TFunless (&GetOptions("spec|s=s", \$opt_spec, "col|c=s", \@opt_cols, "text|t=s", \$opt_text, "data-dir|d=s", \$opt_data_dir, "model-dir|m=s", \$opt_model_dir, "openaddr|o=s", \$opt_openaddr, "region|r=s", \$opt_region, "offline", \$opt_offline, "online-max=i", \$opt_online_max, "dry-run|n", \$opt_dry_run, "verbose|v", \$opt_verbose, "help|h", \$opt_help))
7550TFif ($opt_help)
7750TFif (defined $opt_online_max and $opt_online_max < 1)
8250TFunless (defined $opt_spec and length $opt_spec)
87100TFunless (@opt_cols)
97100TFunless (defined $place_text)
11550TFif ($opt_spec =~ /\Atable:(.+)\z/) { }
50TFelsif ($opt_spec =~ /\Apath:(.+)\z/) { }
0TFelsif ($opt_spec =~ /\Aurl:(.+)\z/) { }
1170TFif $table =~ m[\A([^/]+)/(.+)\z]
12950TFif (defined $table) { }
50TFelsif (defined $path) { }
1300TFdefined $internal ? :
14050TFdefined $internal ? :
14950TFif ($@ or not defined $source)
15650TFif ($@ or not defined $records or not @$records)
1580TF$e ? :
166100TFif $col_set{$col}
18050TFif (-f $models_file)
1820TFif $@
188100TFif length $place_text
19650TFif defined $opt_openaddr and length $opt_openaddr
20150TFif ($opt_dry_run) { }
20750TF$opt_offline ? :
20850TFif defined $opt_online_max
21750TFif (defined $opt_region and $opt_region =~ /\A[A-Za-z]{2}\z/)
24650TFif ($opt_dry_run)
2510TFif ($counts->{'attempted'} // 0) { }
2550TFdefined $backend ? :
2630TFunless rename $tmp->to_string, $models_file->to_string
2660TFif ($@)
28350TFunless $opt_verbose