File Coverage

blib/lib/UV/Process.pm
Criterion Covered Total %
statement 17 19 89.4
branch 1 2 50.0
condition n/a
subroutine 6 8 75.0
pod 1 1 100.0
total 25 30 83.3


line stmt bran cond sub pod time code
1             package UV::Process;
2              
3             our $VERSION = '1.900';
4              
5 3     3   1420 use strict;
  3         11  
  3         88  
6 3     3   15 use warnings;
  3         4  
  3         68  
7 3     3   13 use Carp ();
  3         5  
  3         46  
8 3     3   1397 use parent 'UV::Handle';
  3         950  
  3         15  
9              
10             sub spawn {
11 7     7 1 7469 my $self = shift;
12 7 50       85 ref $self or $self = $self->new(@_);
13              
14 7         12861 $self->_spawn();
15              
16 7         430 return $self;
17             }
18              
19 0     0   0 sub _set_stdin { shift->_set_stdio_h(0 => @_); }
20 1     1   28 sub _set_stdout { shift->_set_stdio_h(1 => @_); }
21 0     0     sub _set_stderr { shift->_set_stdio_h(2 => @_); }
22              
23             1;
24              
25             __END__