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

filter: Statementstmt 100% 17 / 17 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 25 / 25 SCAR 6.9
CC
2
Cov
100%
AUTOLOAD
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
↑ Summary
1 package Git::Repository::Plugin::AUTOLOAD;
2 $Git::Repository::Plugin::AUTOLOAD::VERSION = '1.001';
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use Git::Repository::Plugin;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 our @ISA = qw( Git::Repository::Plugin );
9 1 ▶sub _keywords {qw( AUTOLOAD )}
Subroutine _keywords: called CC=1 SCAR=0.0
10  
11 sub AUTOLOAD {
12 15 ▶ my ($self) = shift;
Subroutine AUTOLOAD: called CC=2 SCAR=6.9
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 1;
26  
27 # ABSTRACT: Git subcommands as Git::Repository methods
28  
29  
30 __END__
↑ Summary