Examples/Export.pm

filter: Statementstmt 66.6% 18 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 10.0% 1 / 10 Podpod 100% 9 / 9 totaltotal 60.8% 28 / 46 CC 1 SCAR 6.4
CC
1
Cov
67%
f1
2.0
f2
2.0
f3
2.0
CRAP 1.9
« Exporter.pm ↑ Summary
1 ## no critic: Modules::ProhibitAutomaticExportation
2  
3 package Perinci::Examples::Export;
4  
5 1 our $DATE = '2019-09-11'; # DATE
6 1 our $VERSION = '0.084'; # VERSION
7  
8 # be lean
9 #use strict;
10 #use warnings;
11  
12 1 ▶use Perinci::Exporter;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 1 our %SPEC;
15  
16 1 our @EXPORT_OK = qw(f7);
17 1 our @EXPORT = qw(f1 f2);
18  
19 1 $SPEC{f1} = { v => 1.1, tags => [qw/a b export:default/] };
20 0 ▶sub f1 { [200, "OK", "f1"] }
Subroutine f1: not called CC=1 SCAR=6.9
Pod documented
21  
22 1 $SPEC{f2} = { v => 1.1, tags => [qw/b export:default/] };
23 0 ▶sub f2 { [200, "OK", "f2"] }
Subroutine f2: not called CC=1 SCAR=6.9
Pod documented
24  
25 1 $SPEC{f3} = { v => 1.1, tags => [qw/a export:default/] };
26 0 ▶sub f3 { [200, "OK", "f3"] }
Subroutine f3: not called CC=1 SCAR=6.9
Pod documented
27  
28 1 $SPEC{f4} = { v => 1.1, tags => [qw/export:default/] };
29 0 ▶sub f4 { [200, "OK", "f4"] }
Subroutine f4: not called CC=1 SCAR=6.9
Pod documented
30  
31 1 $SPEC{f5} = { v => 1.1, tags => [qw/a b/] };
32 0 ▶sub f5 { [200, "OK", "f5"] }
Subroutine f5: not called CC=1 SCAR=6.9
Pod documented
33  
34 1 $SPEC{f6} = { v => 1.1, tags => [qw/a/] };
35 0 ▶sub f6 { [200, "OK", "f6"] }
Subroutine f6: not called CC=1 SCAR=6.9
Pod documented
36  
37 1 $SPEC{f7} = { v => 1.1, tags => [qw/b/] };
38 0 ▶sub f7 { [200, "OK", "f7"] }
Subroutine f7: not called CC=1 SCAR=6.9
Pod documented
39  
40 1 $SPEC{f8} = { v => 1.1, tags => [qw//] };
41 0 ▶sub f8 { [200, "OK", "f8"] }
Subroutine f8: not called CC=1 SCAR=6.9
Pod documented
42  
43 1 $SPEC{f9} = { v => 1.1, tags => [qw/a b export:never/] };
44 0 ▶sub f9 { [200, "OK", "f9"] }
Subroutine f9: not called CC=1 SCAR=6.9
Pod documented
45  
46 1 1;
47 # ABSTRACT: Examples for exporting
48  
49 __END__
« Exporter.pm ↑ Summary