Chart/GGPlot/Geom/Functions.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 22 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Chart/GGPlot/Facet/Functions.pm ↑ Summary Chart/GGPlot/HasCollectibleFunctions.pm »
1 package Chart::GGPlot::Geom::Functions;
2  
3 # ABSTRACT: Function interface for Chart::GGPlot::Geom
4  
5 5 ▶use Chart::GGPlot::Setup;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 5 our $VERSION = '0.002003'; # VERSION
8  
9 5 ▶use Chart::GGPlot::Util qw(collect_functions_from_package);
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 5 ▶use parent qw(Exporter::Tiny);
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 5 my @export_ggplot;
14  
15 5 our @sub_namespaces = qw(
16 Blank
17 Bar Boxplot
18 Path Point Line
19 Polygon
20 Rect Tile Raster
21 Smooth
22 Text
23 );
24  
25 5 for my $name (@sub_namespaces) {
26 60 my $package = "Chart::GGPlot::Geom::$name";
27 60 my @func_names = collect_functions_from_package($package);
28 60 push @export_ggplot, @func_names;
29 }
30  
31 5 our @EXPORT_OK = (
32 @export_ggplot,
33 );
34  
35 5 our %EXPORT_TAGS = (
36 all => \@EXPORT_OK,
37 ggplot => \@export_ggplot,
38 );
39  
40  
41 5 1;
42  
43 __END__
« Chart/GGPlot/Facet/Functions.pm ↑ Summary Chart/GGPlot/HasCollectibleFunctions.pm »