Janus.pm

filter: Statementstmt 100% 18 / 18 Branchbran 100% 4 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 27 / 27 CC 3 SCAR 6.9
CC
3
Cov
100%
new
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« Yamaantaka.pm ↑ Summary Yamaantaka/MirrorTL_BR.pm »
1 #-*- perl -*-
2 #-*- coding: us-ascii -*-
3  
4 package CSS::Janus;
5  
6 34 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 #use warnings;
8 34 ▶use CSS::Yamaantaka;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 34 ▶use vars qw(@ISA $VERSION);
Subroutine BEGIN: called CC=1 SCAR=0.0
11 34 $VERSION = '0.04_02';
12 34 @ISA = qw(CSS::Yamaantaka);
13  
14 105 ▶sub new {
Subroutine new: called CC=3 SCAR=11.0
Pod documented
15 105 my $pkg = shift;
16 105 my %opts = @_;
17  
18 $opts{'flip_url'} = $opts{'swap_left_right_in_url'}
19 105 ▶ if defined $opts{'swap_left_right_in_url'};
Branch: 1 branch
BranchTrueFalseTotal
if defined $opts{"swap_left_right_in_url"} 10 95 105
20 $opts{'ignore_bad_bgp'} = 0
21 105 ▶ unless defined $opts{'ignore_bad_bgp'};
Branch: 1 branch
BranchTrueFalseTotal
unless defined $opts{"ignore_bad_bgp"} 104 1 105
22  
23 105 my $self = $pkg->SUPER::new(@_, 'adaptor' => 'CSS::Yamaantaka::MirrorH');
24 105 bless $self => $pkg;
25 }
26  
27 34 1;
28  
29 __END__
« Yamaantaka.pm ↑ Summary Yamaantaka/MirrorTL_BR.pm »