blib/lib/DBD/Gofer/Transport/corostream.pm untested

filter: Statementstmt 0.0% 0 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 8 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 35 CC 1 SCAR 6.9
CC
1
Cov
0%
start_pipe_command
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package DBD::Gofer::Transport::corostream;
2  
3 use strict;
4 use warnings;
5  
6 our $VERSION = "2.165300";
7  
8 use Carp;
9  
10 use Coro::Select; # a slow but coro-aware replacement for CORE::select (global effect!)
11  
12 use Coro;
13 use Coro::Handle;
14  
15 use base qw(DBD::Gofer::Transport::stream);
16  
17 # XXX ensure DBI_PUREPERL for parent doesn't pass to child
18 sub start_pipe_command {
19 local $ENV{DBI_PUREPERL} = $ENV{DBI_PUREPERL_COROCHILD}; # typically undef
20 my $connection = shift->SUPER::start_pipe_command(@_);
21 return $connection;
22 }
23  
24  
25  
26 1;
27  
28 __END__