| line | % | coverage | condition |
| 102 | 100 | | $opt_analysis // [] |
| 136 | 50 | | $opt_model_dir // ".bi" |
| 137 | 50 | | $opt_data_dir // "data" |
| 142 | 67 | | defined $opt_suppress and length $opt_suppress |
| 154 | 67 | | $opt_state_file // "File::Spec"->catfile($model_dir, "alerts-state.json") |
| 173 | 33 | | $@ or not $analyses |
| 194 | 50 | | $a->{'datasets'} // [] |
| 200 | 50 | | $datasets[0]{'spec'} // "" |
| 221 | 33 | | defined $file_path and -f $file_path |
| 237 | 0 | | $src->fetch_all // [] |
| 238 | 0 | | $src->columns // [sort(keys %{$records->[0] // {};})] |
| 0 | | $records->[0] // {} |
| 269 | 50 | | $a->{'name'} // "" |
| 289 | 100 | | $opt_thresholds // [] |
| 300 | 67 | | $text =~ /\A([^:]+):([^:]+):([^:]+):(.+)\z/ and $analyses->{$1} |
| 342 | 67 | | defined $ENV{'BI_ALERT_NOW'} && $ENV{'BI_ALERT_NOW'} =~ /\A\d+\z/ |
| 348 | 100 | | $suppress > 0 || $opt_recovery || -f $state_file |
| 388 | 100 | | defined $notify_cmd and @announced |
| 412 | 80 | | A | B | C | D | dec |
|---|
| 0 | X | X | X | 0 | | 1 | 0 | X | X | 0 | | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 |
| $changed and $in_use and not $opt_dry_run and not $delivery_failed |