Branch Coverage

blib/lib/Treex/Core/Config.pm
Criterion Covered Total %
branch 9 48 18.7


line true false branch
32 29 0 unless -e $from
42 0 29 if -e $to and not $dirty
43 29 0 unless scalar %{$config;}
44 0 0 unless eval { do { DumpFile($to, $config); 1 } }
58 1 57 unless (-e $dirname)
61 58 0 if (-d $dirname) { }
79 0 0 if (defined $ENV{'TMT_ROOT'})
82 0 0 if wantarray
89 0 0 if (defined $config->{'resource_path'}) { }
96 0 0 if wantarray
109 0 0 if (defined $config->{'share_dir'} and defined realpath($config->{'share_dir'})) { }
117 0 0 if ($self->_devel_version) { }
132 0 0 unless (defined $config->{'share_url'})
140 0 0 unless (defined $config->{'tred_dir'} and defined realpath($config->{'tred_dir'}))
149 0 0 unless (defined $config->{'pml_schema_dir'} and defined realpath($config->{'pml_schema_dir'}))
151 0 0 if ($self->_devel_version) { }
167 0 0 unless (defined $config->{'tred_extension_dir'} and defined realpath($config->{'tred_extension_dir'}))
181 1 0 unless (defined $config->{'tmp_dir'} and defined realpath($config->{'tmp_dir'}))
190 0 0 exists $ENV{'TREEX_SERVER_URL'} ? :
194 0 0 if defined $ENV{'USE_SERVICES'}
196 0 0 if ($config->{'use_services'})
197 0 0 unless load_module('Treex::Service::Role')
208 1 0 unless (-e $tmp_dir)
209 0 1 unless mkdir $tmp_dir