Users/Remote.pm

filter: Statementstmt 84.6% 22 / 26 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 6 / 8 Podpod n/a totaltotal 73.6% 28 / 38 CC 3 SCAR 11.0
CC
3
Cov
73%
name
6.0
id
6.0
BEGIN
1.0
CRAP 3.0
↑ Summary UserName/Remote.pm »
1 package Kwiki::Users::Remote;
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 2 ▶use Kwiki::Users -Base;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶ 
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 our $VERSION = "0.04";
8  
9 2 const class_title => 'Kwiki users from HTTP authentication';
10 2 const user_class => 'Kwiki::User::Remote';
11  
12 package Kwiki::User::Remote;
13 2 ▶use base 'Kwiki::User';
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 0 ▶sub name {
Subroutine name: not called CC=2 SCAR=17.9
16 exists $ENV{REMOTE_USER}
17 ? $ENV{REMOTE_USER}
18 0 ▶ : $self->hub->config->user_default_name;
Branch: 1 branch
BranchTrueFalseTotal
exists $ENV{'REMOTE_USER'} ? : 0 0 0
19 }
20  
21 0 ▶sub id {
Subroutine id: not called CC=2 SCAR=17.9
22 exists $ENV{REMOTE_USER}
23 ? $ENV{REMOTE_USER}
24 0 ▶ : $self->hub->config->user_default_name;
Branch: 1 branch
BranchTrueFalseTotal
exists $ENV{'REMOTE_USER'} ? : 0 0 0
25 }
26  
27 2 __DATA__
↑ Summary UserName/Remote.pm »