WE_Frontend/Plugin/WE_Navigation.pm

filter: Statementstmt 57.1% 12 / 21 Branchbran n/a Conditioncond 0.0% 0 / 12 MC/DCmcdc 0.0% 0 / 5 Subroutinesub 60.0% 3 / 5 Podpod 100% 2 / 2 totaltotal 37.7% 17 / 45 CC 6 SCAR 32.5
CC
6
Cov
36%
new
42.0
Object
2.0
BEGIN
1.0
CRAP 25.7
« WE_Content/XMLText.pm ↑ Summary WE_Frontend/Logger.pm »
1 # -*- perl -*-
2  
3 #
4 # $Id: WE_Navigation.pm,v 1.11 2005/03/02 12:20:01 eserte Exp $
5 # Author: Slaven Rezic
6 #
7 # Copyright (C) 2002 Online Office Berlin. All rights reserved.
8 # Copyright (C) 2002 Slaven Rezic.
9 # This is free software; you can redistribute it and/or modify it under the
10 # terms of the GNU General Public License, see the file COPYING.
11  
12 #
13 # Mail: slaven@rezic.de
14 # WWW: http://we-framework.sourceforge.net
15 #
16  
17 package WE_Frontend::Plugin::WE_Navigation;
18 1 ▶use base qw(WE_Frontend::Plugin::Navigation);
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 1 ▶use vars qw($VERSION);
Subroutine BEGIN: called CC=1 SCAR=0.0
22 1 $VERSION = sprintf("%d.%02d", q$Revision: 1.11 $ =~ /(\d+)\.(\d+)/);
23  
24 1 require WE_Frontend::Plugin::WE_Navigation::Object;
25  
26 0 ▶sub new {
Subroutine new: not called CC=6 SCAR=37.4
Pod documented
27 0 my($class, $context, $params) = @_;
28 0 ▶ $params ||= {};
Condition0%0/2
$params ||= {}
l!l
00
MC/DC0%0/1
$params ||= {}
$params
Truth table0%0/2
A
A= $params
Aresult
11
00
29 0 my $self = $class->SUPER::new($context, $params);
30 0 ▶ $self->{Config} = $params->{config} || eval { $context->stash->get("config") } || {};
Condition0%0/5
$params->{'config'} || eval { do { $context->stash->get('config') } } || {}
l!l
00
$params->{"config"} or eval { do { $context->stash->get("config") } }
l!l&&r!l&&!r
000
MC/DC0%0/2
$params->{'config'} || eval { do { $context->stash->get('config') } } || {}
$params->{"config"} eval { do { $context->stash->get("config") } }
Truth table0%0/3
A or B
A= $params->{"config"}B= eval { do { $context->stash->get("config") } }
ABresult
1X1
011
000
31 0 ▶ $self->{LocalConfig} = $params->{localconfig} || eval { $context->stash->get("localconfig") } || {};
Condition0%0/5
$params->{'localconfig'} || eval { do { $context->stash->get('localconfig') } } || {}
l!l
00
$params->{"localconfig"} or eval { do { $context->stash->get("localconfig") } }
l!l&&r!l&&!r
000
MC/DC0%0/2
$params->{'localconfig'} || eval { do { $context->stash->get('localconfig') } } || {}
$params->{"localconfig"} eval { do { $context->stash->get("localconfig") } }
Truth table0%0/3
A or B
A= $params->{"localconfig"}B= eval { do { $context->stash->get("localconfig") } }
ABresult
1X1
011
000
32 0 bless $self, $class;
33 }
34  
35 0 ▶sub Object {
Subroutine Object: not called CC=1 SCAR=6.9
Pod documented
36 0 "WE_Frontend::Plugin::WE_Navigation::Object";
37 }
38  
39 1 1;
40  
41 __END__
« WE_Content/XMLText.pm ↑ Summary WE_Frontend/Logger.pm »