blib/script/narada-setup-cron | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 16 | 24 | 66.6 |
line | true | false | branch |
---|---|---|---|
22 | 4 | 10 | if @_ > 1 or @_ == 1 and $_[0] ne '--clean' |
26 | 4 | 6 | if (@_) { } |
31 | 4 | 2 | if (Narada::detect() eq 'narada') |
35 | 4 | 2 | $c->is_dir ? : |
37 | 2 | 4 | if (not @configs) { } |
52 | 2 | 80 | if $project_dir =~ /\n/msx |
78 | 0 | 0 | unless open my $cron, '-|', 'VISUAL=cat EDITOR=cat crontab -e' |
80 | 0 | 0 | unless close $cron |
86 | 0 | 0 | unless open my $cron, '|-', 'crontab -' |
88 | 0 | 0 | unless close $cron |
94 | 68 | 112 | if ($s =~ /[^\n]\z/msx) |
106 | 30 | 30 | unless ($user_crontab =~ /$re/msx) |