Branch Coverage

blib/lib/RPC/ExtDirect/Util.pm
Criterion Covered Total %
branch 52 62 83.8


line true false branch
77 2161 172 if ($type eq 'scalar') { }
169 3 elsif ($type eq 'hash') { }
3 0 elsif ($type eq 'array') { }
79 4 2157 $have_value ? :
83 1 167 'HASH' eq ref $default ? :
1 168 $have_value ? :
90 1 1 'ARRAY' eq ref $default ? :
1 2 $have_value ? :
100 6 2327 if ($have_value)
107 0 6 if ('ARRAY' eq ref $fields) { }
138 0 2333 unless $fields
141 2333 0 unless 'ARRAY' eq ref $fields
146 10 2323 if $have_value or $have_default and not $obj->$predicate
162 1 356 unless $attr eq 'ExtDirect'
170 1 355 if $data ne '' and 'ARRAY' ne ref $data
174 1 354 if $@
187 193 161 if ($data->[0] =~ / \A \d+ \z /msx)
196 10 304 if ($param_def =~ / \A len \z /msx) { }
48 256 elsif ($param_def =~ / \A formHandler \z /msx) { }
18 238 elsif ($param_def =~ / \A pollHandler \z /msx) { }
63 175 elsif ($param_def =~ / \A params \z /imsx) { }
111 64 elsif ($param_def =~ / \A (before|instead|after) \z /imsx) { }
6 58 elsif ($param_def =~ / \A strict \z /imsx) { }
202 2 8 unless $attr{'len'} =~ / \A \d+ \z /msx
223 2 61 if ref $arg_names ne 'ARRAY'
238 3 101 if defined $code and $code ne 'NONE' and 'CODE' ne ref $code
257 9 298 if @calling_convention > 1
266 4 334 if exists $attr{'strict'} and not defined $attr{'params'}
287 0 0 if (defined $meta_encoded)
289 0 0 'ARRAY' eq ref $meta_encoded ? :
296 0 0 if ($@)