Branch Coverage

blib/lib/Message/Rules.pm
Criterion Covered Total %
branch 16 30 53.3


line true false branch
69 0 3 unless -e $directory
71 0 3 unless -d $directory
99 0 1 unless open my $fh, '>', $path
101 0 1 unless close $fh
103 0 1 if $@
113 0 2 unless -d $directory and -r $directory
117 0 2 unless opendir my $dh, $directory
118 2 4 if -f "$directory/$_"
119 0 2 unless closedir $dh
122 0 2 unless open my $fh, "$directory/$filename"
123 0 2 unless read $fh, $contents, 1024000
124 0 2 unless close $fh
125 0 2 unless my $conf = decode_json $contents
130 0 2 if $@
140 0 3 unless mmatch($message, $$conf{'match'})