Branch Coverage

lib/CSS/Watcher.pm
Criterion Covered Total %
branch 39 52 75.0


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