Branch Coverage

blib/lib/XAO/DO/Web/Clipboard.pm
Criterion Covered Total %
branch 24 28 85.7


line true false branch
35 10 45 if ($mode eq 'set') { }
28 17 elsif ($mode eq 'show') { }
5 12 elsif ($mode eq 'array-push') { }
6 6 elsif ($mode eq 'array-size') { }
3 3 elsif ($mode eq 'array-pop') { }
3 0 elsif ($mode eq 'array-list') { }
100 0 28 unless $args->{'name'}
103 9 19 if not defined $value or ref $value
105 21 7 if defined $value
131 2 3 if (not ref $array or ref $array ne "ARRAY")
135 2 3 unless (defined $array)
165 1 0 if (ref $array and ref $array eq "ARRAY" and @$array)
190 0 3 unless ref $array and ref $array eq "ARRAY"
228 4 2 if (ref $array and ref $array eq "ARRAY")