PS1/Plugin/Face.pm

filter: Statementstmt 80.9% 17 / 21 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 100% 1 / 1 totaltotal 71.8% 23 / 32 CC 3 SCAR 16.3
CC
3
Cov
68%
face
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 5.1
« PS1/Plugin/Ruby.pm ↑ Summary PS1/Plugin/Perl.pm »
1 package App::PS1::Plugin::Face;
2  
3 # Created on: 2011-06-21 09:48:15
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 Data::Dumper qw/Dumper/;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use English qw/ -no_match_vars /;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 1 our $VERSION = 0.08;
16  
17 0 ▶sub face {
Subroutine face: not called CC=3 SCAR=24.8
Pod documented
18 0 my ($self, $options) = @_;
19 0 my $exit_code = $self->exit;
20 0 my ($happy, $sad) = (qw/:-) :-(/);
21  
22 0 ▶ return ( 3, !$exit_code ? $self->colour('face_happy') . $happy : $exit_code ? $self->colour('face_sad') . $sad : $self->colour('red', 'red') . $sad );
Branch: 2 branches
BranchTrueFalseTotal
!$exit_code ? : 0 0 0
$exit_code ? : 0 0 0
23 }
24  
25 1 1;
26  
27 __END__
« PS1/Plugin/Ruby.pm ↑ Summary PS1/Plugin/Perl.pm »