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.902';
4              
5 3     3   1377 use strict;
  3         11  
  3         89  
6 3     3   14 use warnings;
  3         5  
  3         70  
7 3     3   12 use Carp ();
  3         5  
  3         51  
8 3     3   1549 use parent 'UV::Handle';
  3         998  
  3         16  
9              
10             sub spawn {
11 7     7 1 7623 my $self = shift;
12 7 50       90 ref $self or $self = $self->new(@_);
13              
14 7         17467 $self->_spawn();
15              
16 7         493 return $self;
17             }
18              
19 0     0   0 sub _set_stdin { shift->_set_stdio_h(0 => @_); }
20 1     1   32 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__