Branch Coverage

blib/lib/Config/DB.pm
Criterion Covered Total %
branch 22 38 57.8


line true false branch
17 2 11 if not defined $class or $class eq ''
20 1 9 if $class->check_Config_DB_hineritance ne 'check_Config_DB_hineritance'
24 2 9 if $@ ne ''
27 1 8 unless defined $$self{'connect'}
29 1 7 if ref $$self{'connect'} ne 'ARRAY'
32 1 6 unless defined $$self{'tables'}
34 1 5 if ref $$self{'tables'} ne 'HASH'
37 1 4 if 0 == scalar keys %{$$self{'tables'};}
50 0 0 unless $name =~ /^_/
69 2 0 unless $$self{'read'}
71 0 0 unless defined $table
72 0 0 unless exists $$self{'values'}{$table}
75 0 0 unless defined $key
77 0 0 unless exists $$self{'values'}{$table}{$key}
81 0 0 unless defined $field
83 0 0 unless exists $$self{'values'}{$table}{$key}{$field}
93 4 3 unless $connect[3]
101 1 6 if $@
112 6 0 if $@