UserMessages/Message.pm

filter: Statementstmt 100% 18 / 18 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 96.0% 24 / 25 CC 2 SCAR 3.4
CC
2
Cov
100%
AUTOLOAD
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« UserMessages/Queue.pm ↑ Summary UserMessages.pm »
1 package Mojolicious::Plugin::UserMessages::Message;
2 {
3 2 $Mojolicious::Plugin::UserMessages::Message::VERSION = '0.511';
4 }
5  
6 2 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 our $AUTOLOAD;
10  
11 3 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
12 3 my $class = shift;
13 3 my %args = @_;
14  
15 3 return bless( \%args, $class);
16 }
17  
18 9 ▶sub AUTOLOAD {
Subroutine AUTOLOAD: called CC=2 SCAR=6.9
19 9 my $self = shift;
20  
21 9 my $method = $AUTOLOAD;
22 9 $method =~ s/.*://; # strip fully-qualified portion
23  
24 9 ▶ return if $method eq 'DESTROY';
Branch: 1 branch
BranchTrueFalseTotal
if $method eq "DESTROY" 3 6 9
25  
26 6 return $self->{$method};
27 }
28  
29 2 1;
« UserMessages/Queue.pm ↑ Summary UserMessages.pm »