PS1/Plugin/Perl.pm

filter: Statementstmt 76.1% 16 / 21 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 100% 1 / 1 totaltotal 72.4% 21 / 29 CC 2 SCAR 9.8
CC
2
Cov
70%
perl
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.7
« PS1/Plugin/Face.pm ↑ Summary PS1/Daemon.pm »
1 package App::PS1::Plugin::Perl;
2  
3 # Created on: 2011-06-21 09:48:47
4 # Create by: Ivan Wills
5 # $Id$
6 # $Revision$, $HeadURL$, $Date$
7 # $Revision$, $Source$, $Date$
8  
9 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use English qw/ -no_match_vars /;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 1 our $VERSION = 0.08;
15 1 our @EXPORT_OK = qw//;
16 1 our %EXPORT_TAGS = ();
17 #our @EXPORT = qw//;
18  
19 0 ▶sub perl {
Subroutine perl: not called CC=2 SCAR=17.9
Pod documented
20 0 my ($self, $options) = @_;
21 0 my $path = $ENV{PERLBREW_PERL};
22 0 ▶ return if !$path;
Branch: 1 branch
BranchTrueFalseTotal
unless $path 0 0 0
23  
24 0 my ($version) = $path =~ /perl-(.*)$/;
25  
26 0 return $self->surround(
27 5 + length $version,
28 $self->colour('branch_label') . 'perl ' . $self->colour('branch') . $version
29 );
30 }
31  
32 1 1;
33  
34 __END__
« PS1/Plugin/Face.pm ↑ Summary PS1/Daemon.pm »