Branch Coverage

lib/Module/New/Config.pm
Criterion Covered Total %
branch 20 24 83.3


line true false branch
28 5 301 if exists $$self{'option'}{$key}
29 85 216 if exists $$self{'config'}{$key}
36 23 0 if (@_ and @_ % 2 == 0)
37 0 23 unless $$self{'config'}
44 1 2 if @_
54 7 15 if ($$self{'file'}) { }
55 5 2 if $self->_load_and_merge($$self{'file'})
59 3 12 if $self->_load_and_merge($file)
68 14 8 unless $file and -f $file
72 0 8 if $@
85 17 1 unless $$self{'option'}
117 4 0 if $$self{'no_prompt'}