blib/lib/Gnuplot/Builder.pm

filter: Statementstmt 78.7% 26 / 33 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 84.6% 11 / 13 Podpod 100% 6 / 6 totaltotal 82.6% 43 / 52 SCAR 7.1
CC
2
Cov
79%
__ANON__
6.0
ghelp
2.0
BEGIN
1.0
CRAP 2.0
« blib/lib/Gnuplot/Builder/Tap.pm ↑ Summary blib/lib/Gnuplot/Builder/Lens.pm »
1 package Gnuplot::Builder;
2 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use parent qw(Exporter);
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use Gnuplot::Builder::Script;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 4 ▶use Gnuplot::Builder::Dataset;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 4 ▶use Gnuplot::Builder::Process;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 4 our $VERSION = "0.31";
10  
11 4 our @EXPORT = our @EXPORT_OK = qw(gscript gfunc gfile gdata ghelp gwait);
12  
13 sub gscript {
14 7 ▶ return Gnuplot::Builder::Script->new(@_);
Subroutine gscript: called CC=1 SCAR=0.0
Pod documented
15 }
16  
17 sub gfunc {
18 2 ▶ return Gnuplot::Builder::Dataset->new(@_);
Subroutine gfunc: called CC=1 SCAR=0.0
Pod documented
19 }
20  
21 sub gfile {
22 2 ▶ return Gnuplot::Builder::Dataset->new_file(@_);
Subroutine gfile: called CC=1 SCAR=0.0
Pod documented
23 }
24  
25 sub gdata {
26 1 ▶ return Gnuplot::Builder::Dataset->new_data(@_);
Subroutine gdata: called CC=1 SCAR=0.0
Pod documented
27 }
28  
29 sub ghelp {
30 0 ▶ my (@help_args) = @_;
Subroutine ghelp: not called CC=1 SCAR=6.9
Pod documented
31 return Gnuplot::Builder::Process->with_new_process(do => sub {
32 0 ▶ my $writer = shift;
Subroutine __ANON__: not called CC=2 SCAR=17.9
33 0 $writer->("help");
34 0 foreach my $arg (@help_args) {
35 0 $writer->(" $arg");
36 }
37 0 $writer->("\n");
38 0 });
39 }
40  
41 sub gwait {
42 1 ▶ return Gnuplot::Builder::Process->wait_all();
Subroutine gwait: called CC=1 SCAR=0.0
Pod documented
43 }
44  
45 4 1;
46 __END__
« blib/lib/Gnuplot/Builder/Tap.pm ↑ Summary blib/lib/Gnuplot/Builder/Lens.pm »