bin/tapper-action-daemon

filter: Statementstmt 100% 18 / 18 Branchbran 100% 4 / 4 Conditioncond 50.0% 2 / 4 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 87.5% 28 / 32 CC 1 SCAR 0.0
CC
1
Cov
92%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Tapper/Action/Daemon.pm ↑ Summary
1 #! /usr/bin/perl
2 # PODNAME: tapper-action
3 # ABSTRACT: cmdline frontend to Tapper::Action/daemonize
4  
5 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 6 ▶use Tapper::Action::Daemon;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 6 ▶use Cwd;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 6 ▶$ENV{MX_DAEMON_STDOUT} ||= '/tmp/tapper_action_daemon_stdout.log';
Condition50%1/2
$ENV{"MX_DAEMON_STDOUT"} ||= "/tmp/tapper_action_daemon_stdout.log"
l!l
06
MC/DC0%0/1
$ENV{"MX_DAEMON_STDOUT"} ||= "/tmp/tapper_action_daemon_stdout.log"
$ENV{"MX_DAEMON_STDOUT"}
Truth table50%1/2
A
A= $ENV{"MX_DAEMON_STDOUT"}
Aresult
11
00
12 6 ▶$ENV{MX_DAEMON_STDERR} ||= '/tmp/tapper_action_daemon_stderr.log';
Condition50%1/2
$ENV{"MX_DAEMON_STDERR"} ||= "/tmp/tapper_action_daemon_stderr.log"
l!l
06
MC/DC0%0/1
$ENV{"MX_DAEMON_STDERR"} ||= "/tmp/tapper_action_daemon_stderr.log"
$ENV{"MX_DAEMON_STDERR"}
Truth table50%1/2
A
A= $ENV{"MX_DAEMON_STDERR"}
Aresult
11
00
13  
14 6 ▶$ENV{MX_DAEMON_STDOUT} = '/tmp/tapper_action_daemon_stdout.log' if not -w $ENV{MX_DAEMON_STDOUT};
Branch: 1 branch
BranchTrueFalseTotal
unless -w $ENV{"MX_DAEMON_STDOUT"} 4 2 6
15 6 ▶$ENV{MX_DAEMON_STDERR} = '/tmp/tapper_action_daemon_stderr.log' if not -w $ENV{MX_DAEMON_STDERR};
Branch: 1 branch
BranchTrueFalseTotal
unless -w $ENV{"MX_DAEMON_STDERR"} 4 2 6
16  
17  
18 6 my $notify = Tapper::Action::Daemon->new
19 (
20 basedir => getcwd,
21 pidfile => '/tmp/tapper-action-daemon.pid',
22 );
23 6 $notify->run;
24  
25 __END__
« blib/lib/Tapper/Action/Daemon.pm ↑ Summary