blib/lib/perl5i/1/UNIVERSAL.pm untested

filter: Statementstmt 0.0% 0 / 26 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 11 Podpod 0.0% 0 / 7 totaltotal 0.0% 0 / 53 CC 3 SCAR 14.6
CC
3
Cov
0%
alias
12.0
is_number
2.0
is_positive
2.0
CRAP 4.3
1 package perl5i::1::UNIVERSAL;
2  
3 # Methods which apply to all autoboxed objects
4  
5 use strict;
6 use warnings;
7  
8 require Carp;
9  
10 sub alias {
11 my $self = shift;
12  
13 Carp::croak("Not enough arguments given to alias()") unless @_;
14  
15 my @name = @_;
16 unshift @name, (caller)[0] unless @name > 1 or grep /::/, @name;
17  
18 my $name = join "::", @name;
19  
20 no strict 'refs';
21 *{$name} = $self;
22 return 1;
23 }
24  
25 sub is_number { return }
26 sub is_positive { return }
27 sub is_negative { return }
28 sub is_int { return }
29 sub is_integer { return }
30 sub is_decimal { return }
31  
32 1;