blib/lib/DBI/Gofer/Transport/pipeone.pm

filter: Statementstmt 0.0% 0 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 11 CC 1 SCAR 6.9
CC
1
Cov
0%
run_one_stdio
2.0
CRAP 2.0
« blib/lib/DBI/Changes.pm ↑ Summary blib/lib/dbixs_rev.pl »
1 package DBI::Gofer::Transport::pipeone;
2  
3 # $Id: pipeone.pm 12536 2009-02-24 22:37:09Z Tim $
4 #
5 # Copyright (c) 2007, Tim Bunce, Ireland
6 #
7 # You may distribute under the terms of either the GNU General Public
8 # License or the Artistic License, as specified in the Perl README file.
9  
10 use strict;
11 use warnings;
12  
13 use DBI::Gofer::Execute;
14  
15 use base qw(DBI::Gofer::Transport::Base Exporter);
16  
17 our $VERSION = "0.012537";
18  
19 our @EXPORT = qw(run_one_stdio);
20  
21 my $executor = DBI::Gofer::Execute->new();
22  
23 sub run_one_stdio {
24  
25 0 ▶ binmode STDIN;
Subroutine run_one_stdio: not called CC=1 SCAR=6.9
Pod undocumented
26 0 binmode STDOUT;
27  
28 0 my $transport = DBI::Gofer::Transport::pipeone->new();
29  
30 0 my $frozen_request = do { local $/; <STDIN> };
31  
32 0 my $response = $executor->execute_request( $transport->thaw_request($frozen_request) );
33  
34 0 my $frozen_response = $transport->freeze_response($response);
35  
36 0 print $frozen_response;
37  
38 # no point calling $executor->update_stats(...) for pipeONE
39 }
40  
41 1;
42 __END__
« blib/lib/DBI/Changes.pm ↑ Summary blib/lib/dbixs_rev.pl »