Branch Coverage

blib/lib/FormValidator/Simple/Messages.pm
Criterion Covered Total %
branch 17 40 42.5


line true false branch
21 2 35 if ($format)
29 2 2 if (ref $data eq 'HASH') { }
2 0 elsif (-e $data and -f _ and -r _) { }
36 0 2 if ($@)
52 0 35 if ($self->decode_from and not &Encode::is_utf8($msg))
61 0 35 unless ($data)
67 0 35 unless ($action and exists $$data{$action})
68 0 0 if (exists $$data{'DEFAULT'}) { }
69 0 0 if (exists $$data{'DEFAULT'}{$name}) { }
71 0 0 if (exists $$conf{$type}) { }
0 0 elsif (exists $$conf{'DEFAULT'}) { }
86 32 3 if (exists $$data{$action}{$name}) { }
3 0 elsif (exists $$data{'DEFAULT'} and exists $$data{'DEFAULT'}{$name}) { }
88 25 7 if (exists $$conf{$type}) { }
7 0 elsif (exists $$conf{'DEFAULT'}) { }
0 0 elsif (exists $$data{'DEFAULT'} and exists $$data{'DEFAULT'}{$name}) { }
97 0 0 if (exists $$conf{$type}) { }
0 0 elsif (exists $$conf{'DEFAULT'}) { }
108 0 3 if (exists $$conf{$type}) { }
3 0 elsif (exists $$conf{'DEFAULT'}) { }