Condition Coverage

File:script/bi-alert
Coverage:62.3%

line%coveragecondition
102100
Adec
00
11
$opt_analysis // []
13650
Adec
00
11
$opt_model_dir // ".bi"
13750
Adec
00
11
$opt_data_dir // "data"
14267
ABdec
0X0
100
111
defined $opt_suppress and length $opt_suppress
15467
ABdec
000
011
1X1
$opt_state_file // "File::Spec"->catfile($model_dir, "alerts-state.json")
17333
ABdec
000
011
1X1
$@ or not $analyses
19450
Adec
00
11
$a->{'datasets'} // []
20050
Adec
00
11
$datasets[0]{'spec'} // ""
22133
ABdec
0X0
100
111
defined $file_path and -f $file_path
2370
Adec
00
11
$src->fetch_all // []
2380
Adec
00
11
$src->columns // [sort(keys %{$records->[0] // {};})]
0
Adec
00
11
$records->[0] // {}
26950
Adec
00
11
$a->{'name'} // ""
289100
Adec
00
11
$opt_thresholds // []
30067
ABdec
0X0
100
111
$text =~ /\A([^:]+):([^:]+):([^:]+):(.+)\z/ and $analyses->{$1}
34267
ABdec
0X0
100
111
defined $ENV{'BI_ALERT_NOW'} && $ENV{'BI_ALERT_NOW'} =~ /\A\d+\z/
348100
ABdec
000
011
1X1
$suppress > 0 || $opt_recovery || -f $state_file
388100
ABdec
0X0
100
111
defined $notify_cmd and @announced
41280
ABCDdec
0XXX0
10XX0
110X0
11100
11111
$changed and $in_use and not $opt_dry_run and not $delivery_failed