Branch Coverage

lib/CSS/Watcher.pm
Criterion Covered Total %
branch 38 52 73.0


line true false branch
39 4 3 if (-f $obj or -d $obj)
41 0 4 unless defined $proj_dir
54 3 1 if ($prj->{'monitor'}->is_changed($cfg))
61 3 1 if (-f $cfg)
62 3 0 if (open CFG, '<:encoding(UTF-8)', $cfg)
65 4 2 /^\s*use:\s*(.*?)\s*$/i ? :
0 6 /^\s*skip:\s*(.*?)\s*$/i ? :
4 6 /^\s*ignore:\s*(.*?)\s*$/i ? :
78 0 13 if &any(sub { $_ eq $file; } , @{$$prj{'parsed_files'};})
82 4 14 if ($file =~ /$_/)
87 9 4 unless ($allow)
89 2 8 if ($file =~ /$_/)
95 0 7 $file =~ /\.less$/ ? :
4 7 $file =~ /\.css$/ ? :
148 0 0 if ($file eq $_)
149 0 0 if &any(sub { $_ eq $less_fname; } , @{$$project{'parsed_files'};})
224 1 3 unless defined $changes
230 2 1 if ($changes) { }
242 0 11 unless defined $dir
244 3 8 unless (exists $self->{'PROJECTS'}{$dir})
256 10 0 -d $obj ? :
1 10 -f $obj ? :
0 11 !defined($obj) ? :
259 0 11 unless defined $pdir
264 6 42 if (-e $pdir->child($_))
268 0 5 if $pdir->is_rootdir