Lowu.pm

filter: Statementstmt 100% 12 / 12 Branchbran 75.0% 3 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 94.7% 18 / 19 SCAR 6.9
CC
2
Cov
94%
import
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« List/Objects/WithUtils/Role/Hash/TiedRO.pm ↑ Summary List/Objects/WithUtils/Role/Array/Typed.pm »
1 package Lowu;
2 93 $Lowu::VERSION = '2.028002';
3 93 ▶use strictures 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 93 ▶use parent 'List::Objects::WithUtils';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 sub import {
8 93 ▶ my ($class, @funcs) = @_;
Subroutine import: called CC=2 SCAR=6.9
9 93 ▶ @funcs = 'all' unless @funcs;
Branch: 1 branch
BranchTrueFalseTotal
unless @funcs 88 5 93
10 93 $class->SUPER::import(
11 +{
12 import => [ @funcs ],
13 to => scalar(caller),
14 }
15 )
16 }
17  
18 93 ▶print
Branch: 1 branch
BranchTrueFalseTotal
unless caller 0 93 93
19 qq[I'm not sorry, on account of all the typing I've saved myself ;-)\n]
20 unless caller;
21 93 1;
22  
23 =pod
24  
25 =for Pod::Coverage import
26  
27 =head1 NAME
28  
29 Lowu - Shortcut for importing all of List::Objects::WithUtils
30  
31 =head1 SYNOPSIS
32  
33 # Same as:
34 # use List::Objects::WithUtils ':all';
35 use Lowu;
36  
37 =head1 DESCRIPTION
38  
39 A short-to-type way to get all of L<List::Objects::WithUtils>, including
40 autoboxing.
41  
42 If you like, you can specify params as if calling C<use
43 List::Objects::WithUtils>:
44  
45 # Get array() and immarray() only:
46 use Lowu 'array', 'immarray';
47  
48 =head1 AUTHOR
49  
50 Jon Portnoy <avenj@cobaltirc.org>
51  
52 =cut
« List/Objects/WithUtils/Role/Hash/TiedRO.pm ↑ Summary List/Objects/WithUtils/Role/Array/Typed.pm »