Condition Coverage

File:blib/lib/App/GHGen/Analyzer.pm
Coverage:28.6%

line%coveragecondition
400
ABdec
0X0
100
111
$workflows_dir->exists and $workflows_dir->is_dir
17350
Adec
00
11
$cache_configs{$detected_type} // "Add caching based on your dependency manager:\n       See: https://docs.github.com/en/actions/using-workflows/caching-dependencies"
18667
ABdec
0X0
100
111
$step->{'uses'} and $step->{'uses'} =~ m[actions/cache]u
21333
ABdec
0X0
100
111
ref $on eq "HASH" and $on->{'push'}
21533
ABdec
000
011
1X1
ref $push eq "" or not $push->{'paths'} || $push->{'branches'}
33
ABdec
000
011
1X1
$push->{'paths'} || $push->{'branches'}
2190
ABdec
0X0
100
111
ref $on eq "ARRAY" and grep {$_ eq "push";} @$on
242100
Adec
00
11
$step->{'run'} // ""
2960
ABdec
0X0
100
111
$step->{'uses'} and $step->{'uses'} =~ /deploy|publish|release/iu
2970
ABdec
0X0
100
111
$step->{'run'} and $step->{'run'} =~ /git push|npm publish/u