eg/test-detach

filter: Statementstmt 100% 13 / 13 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 89.4% 17 / 19 CC 1 SCAR 0.0
CC
1
Cov
88%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« eg/test-fork-daemon ↑ Summary eg/test-daemon »
1 #!/usr/local/bin/perl -w
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 2 my( $done_file ) = @ARGV;
5  
6 2 ▶die "usage: $0 done_file" if !defined $done_file;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $done_file 0 2 2
7  
8 # Program:
9 2 ▶use App::Daemon qw( detach );
Subroutine BEGIN: called CC=1 SCAR=0.0
10 2 detach();
11 1 sleep(1);
12  
13 1 ▶open FILE, ">", $done_file or die;
Branch: 1 branch
BranchTrueFalseTotal
open FILE, ">", $done_file or die 1 0 1
14 1 print FILE "Done\n";
15 1 close FILE;
« eg/test-fork-daemon ↑ Summary eg/test-daemon »