blib/lib/Git/Repository/Plugin/AUTOLOAD.pm

filter: Statementstmt 100% 20 / 20 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 28 / 28 CC 2 SCAR 2.5
CC
2
Cov
100%
AUTOLOAD
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
↑ Summary
1 package Git::Repository::Plugin::AUTOLOAD;
2 2 $Git::Repository::Plugin::AUTOLOAD::VERSION = '1.003';
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 ▶use Git::Repository::Plugin;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 our @ISA = qw( Git::Repository::Plugin );
9 1 ▶sub _keywords {qw( AUTOLOAD )}
Subroutine _keywords: called CC=1 SCAR=0.0
10  
11 15 ▶sub AUTOLOAD {
Subroutine AUTOLOAD: called CC=2 SCAR=6.9
12 15 my ($self) = shift;
13  
14 # get the command name
15 15 ( my $cmd = our $AUTOLOAD ) =~ s/.*:://;
16 15 $cmd =~ y/_/-/;
17  
18 # but ignore some commands
19 15 ▶ return if $cmd eq 'DESTROY';
Branch: 1 branch
BranchTrueFalseTotal
if $cmd eq "DESTROY" 2 13 15
20  
21 # run it
22 13 return $self->run( $cmd, @_ );
23 }
24  
25 2 1;
26  
27 __END__
↑ Summary