Branch Coverage

blib/lib/App/Rcsync.pm
Criterion Covered Total %
branch 12 40 30.0


line true false branch
40 0 1 unless ($$opt{'init'} or -e $$opt{'config'})
45 0 1 if (not $$opt{'help'} || $$opt{'init'} || $$opt{'all'} || $$opt{'list'} || @$args)
55 0 1 if ($$opt{'init'}) { }
0 1 elsif ($$opt{'help'}) { }
60 0 0 if (-e $$opt{'config'})
66 0 0 unless -e $rcsync_home
70 0 0 if (-e (my $sample_config = file($rcsync_home, 'rcsync'))) { }
72 0 0 unless copy($sample_config, $$opt{'config'})
79 0 0 unless @children
95 0 0 unless my $tt = 'Template'->new
96 0 0 unless $tt->process(\_config_template(), {'templates', \@templates, 'rcsync_home', $rcsync_home}, $$opt{'config'}->stringify)
118 0 1 $$opt{'all'} ? :
120 0 1 if ($$opt{'list'}) { }
0 1 elsif ($$opt{'which'}) { }
128 0 0 if (exists $profiles_config{$profile_name}) { }
140 0 1 unless my $tt = 'Template'->new('INCLUDE_PATH', $config{'base_dir'})
144 0 1 unless ($profiles_config{$profile_name})
152 1 0 $$opt{'stdout'} ? :
0 1 unless $tt->process($$profile{'template'}, $$profile{'param'}, $$opt{'stdout'} ? \*STDOUT : $$profile{'filename'})
158 0 1 unless ($$opt{'stdout'})