Branch Coverage

blib/lib/Data/Model/Schema/Properties.pm
Criterion Covered Total %
branch 89 106 83.9


line true false branch
37 70 42 unless $_[0]{'unique'}{$_[1]}
42 15 143 ref $key eq 'ARRAY' ? :
51 0 60 if ref $index or not defined $index
53 47 13 unless ref $key eq 'ARRAY'
62 86 424 if $column =~ /^[^\.+]+\.[^\.+]+$/
64 0 424 if grep {lc $_ eq lc $column;} @RESERVED
66 0 424 if exists $$options{'require'} and exists $$options{'required'}
68 14 410 if (exists $$options{'require'})
73 421 3 if ($Data::Model::RUN_VALIDATION)
139 24 392 if delete $$self{'_build_tmp'}{'utf8_column'}{$column}
162 4 48 unless $args
172 0 86 unless exists $$sugar{$name} and $$sugar{$name}
181 65 21 if (@_ == 0 or ref $_[0]) { }
184 1 64 unless ($$self{'model'} eq $model)
190 7 79 if (@_ and ref $_[0] eq 'HASH')
193 28 58 if (my $alias_args = delete $clone{'options'}{'alias'})
200 12 74 if delete $$self{'_build_tmp'}{'utf8_column'}{$name}
208 0 16 if (ref $_[0] eq 'HASH') { }
16 0 elsif (not @_ % 2) { }
224 0 1430 unless $column and $$self{'column'}{$column} and $$self{'column'}{$column}{'type'}
229 0 769 unless $$self{'column'}{$column}{'options'}
242 8 405 if ($inflate and ref $inflate ne 'CODE')
247 24 389 if (ref $inflate eq 'CODE') { }
255 8 405 if ($deflate and ref $deflate ne 'CODE')
259 32 381 if (ref $deflate eq 'CODE') { }
267 28 139 if (scalar %{$$self{'utf8_columns'};})
280 16 36 if ($inflate and ref $inflate ne 'CODE')
292 16 36 if ($is_utf8 and $inflate_code) { }
8 28 elsif ($is_utf8) { }
20 8 elsif ($inflate_code) { }
315 104 1452 if ($_[0]{'has_inflate'})
318 104 0 if (ref $columns eq $$self{'class'}) { }
0 0 elsif (ref $columns ne 'HASH') { }
327 0 240 unless defined $$columns{$column}
332 116 124 if ($$self{'utf8_columns'}{$column})
337 88 152 if ref $$opts{'inflate'} eq 'CODE'
339 144 96 if $orig_columns and $$columns{$column} ne $val
349 785 248 unless $_[0]{'has_deflate'}
352 0 248 if (ref $columns eq $$self{'class'}) { }
0 248 elsif (ref $columns ne 'HASH') { }
361 136 288 unless defined $$columns{$column}
365 200 88 if ref $$opts{'deflate'} eq 'CODE'
367 136 152 if ($$self{'utf8_columns'}{$column})
380 1134 184 if exists $$columns{$name}
381 0 184 unless exists $$conf{'options'}
382 170 14 unless exists $$conf{'options'}{'default'}
385 4 10 if (ref $default eq 'CODE') { }
397 20 1574 if $index
399 0 1594 unless ref $key eq 'ARRAY'
403 358 1343 unless defined $$hash{$key}
415 1226 112 unless exists $$hash{$column}
421 20 622 if $index
423 0 642 unless ref $key eq 'ARRAY'