lib/HTML/Mason/Resolver.pm

filter: Statementstmt 77.4% 24 / 31 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 63.6% 7 / 11 Podpod 100% 2 / 2 totaltotal 75.0% 33 / 44 CC 1 SCAR 2.5
CC
1
Cov
77%
get_info
2.0
glob_path
2.0
_virtual
2.0
CRAP 1.3
« lib/HTML/Mason.pm ↑ Summary lib/HTML/Mason/Component/FileBased.pm »
1 # Copyright (c) 1998-2005 by Jonathan Swartz. All rights reserved.
2 # This program is free software; you can redistribute it and/or modify it
3 # under the same terms as Perl itself.
4  
5 package HTML::Mason::Resolver;
6 33 $HTML::Mason::Resolver::VERSION = '1.60';
7 33 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 33 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 33 ▶use HTML::Mason::Exceptions( abbr => ['param_error', 'virtual_error'] );
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 33 ▶use Params::Validate qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
13 0 ▶Params::Validate::validation_options( on_fail => sub { param_error join '', @_ } );
Subroutine __ANON__: not called CC=1 SCAR=1.2
14  
15 33 ▶use HTML::Mason::ComponentSource;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 33 ▶use Class::Container;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 33 ▶use base qw(Class::Container);
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 # Returns HTML::Mason::ComponentSource object
21 0 ▶sub get_info {
Subroutine get_info: not called CC=1 SCAR=6.9
Pod documented
22 0 shift->_virtual;
23 }
24  
25 0 ▶sub glob_path {
Subroutine glob_path: not called CC=1 SCAR=6.9
Pod documented
26 0 shift->_virtual;
27 }
28  
29 sub _virtual
30 0 ▶{
Subroutine _virtual: not called CC=1 SCAR=6.9
31 0 my $self = shift;
32  
33 0 my $sub = (caller(1))[3];
34 0 $sub =~ s/.*::(.*?)$/$1/;
35 0 virtual_error "$sub is a virtual method and must be overridden in " . ref($self);
36 }
37  
38 33 1;
39  
40 __END__
« lib/HTML/Mason.pm ↑ Summary lib/HTML/Mason/Component/FileBased.pm »