BackpackTF/User.pm

filter: Statementstmt 42.8% 12 / 28 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 16 MC/DCmcdc 0.0% 0 / 8 Subroutinesub 21.0% 4 / 19 Podpod 93.7% 15 / 16 totaltotal 34.8% 31 / 89 SCAR 37.3
CC
9
Cov
26%
banned
20.0
positive
6.0
negative
6.0
CRAP 41.7
↑ Summary BackpackTF/Item.pm »
1 package WWW::BackpackTF::User;
2  
3 2 ▶use 5.014000;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 our $VERSION = '0.002';
7  
8 sub new{
9 1 ▶ my ($class, $content) = @_;
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
10 1 bless $content, $class
11 }
12  
13 0 ▶sub steamid { shift->{steamid} }
Subroutine steamid: not called CC=1 SCAR=6.9
Pod documented
14 0 ▶sub name { shift->{name} }
Subroutine name: not called CC=1 SCAR=6.9
Pod documented
15 0 ▶sub reputation { shift->{backpack_tf_reputation} }
Subroutine reputation: not called CC=1 SCAR=6.9
Pod documented
16 0 ▶sub group { shift->{backpack_tf_group} }
Subroutine group: not called CC=1 SCAR=6.9
Pod documented
17 0 ▶sub positive { shift->{backpack_tf_trust}->{for} // 0 }
Subroutine positive: not called CC=2 SCAR=17.9
Pod documented
Condition0%0/2
+(shift())->{"backpack_tf_trust"}{"for"} // 0
l!l
00
MC/DC0%0/1
+(shift())->{"backpack_tf_trust"}{"for"} // 0
+(shift())->{"backpack_tf_trust"}{"for"}
Truth table0%0/2
A
A= +(shift())->{"backpack_tf_trust"}{"for"}
Aresult
11
00
18 0 ▶sub negative { shift->{backpack_tf_trust}->{against} // 0 }
Subroutine negative: not called CC=2 SCAR=17.9
Pod documented
Condition0%0/2
+(shift())->{"backpack_tf_trust"}{"against"} // 0
l!l
00
MC/DC0%0/1
+(shift())->{"backpack_tf_trust"}{"against"} // 0
+(shift())->{"backpack_tf_trust"}{"against"}
Truth table0%0/2
A
A= +(shift())->{"backpack_tf_trust"}{"against"}
Aresult
11
00
19 0 ▶sub scammer { shift->{steamrep_scammer} }
Subroutine scammer: not called CC=1 SCAR=6.9
Pod documented
20 0 ▶sub banned_backpack { shift->{backpack_tf_banned} }
Subroutine banned_backpack: not called CC=1 SCAR=6.9
Pod documented
21 0 ▶sub banned_economy { shift->{ban_economy} }
Subroutine banned_economy: not called CC=1 SCAR=6.9
Pod documented
22 0 ▶sub banned_community { shift->{ban_community} }
Subroutine banned_community: not called CC=1 SCAR=6.9
Pod documented
23 0 ▶sub banned_vac { shift->{ban_vac} }
Subroutine banned_vac: not called CC=1 SCAR=6.9
Pod documented
24 0 ▶sub notifications { shift->{notifications} // 0 }
Subroutine notifications: not called CC=2 SCAR=17.9
Pod documented
Condition0%0/2
+(shift())->{"notifications"} // 0
l!l
00
MC/DC0%0/1
+(shift())->{"notifications"} // 0
+(shift())->{"notifications"}
Truth table0%0/2
A
A= +(shift())->{"notifications"}
Aresult
11
00
25 0 ▶sub value { shift->{backpack_value}->{shift // WWW::BackpackTF::TF2} }
Subroutine value: not called CC=2 SCAR=17.9
Pod documented
Condition0%0/2
shift() // 440
l!l
00
MC/DC0%0/1
shift() // 440
shift()
Truth table0%0/2
A
A= shift()
Aresult
11
00
26 0 ▶sub update { shift->{backpack_update}->{shift // WWW::BackpackTF::TF2} }
Subroutine update: not called CC=2 SCAR=17.9
Pod documented
Condition0%0/2
shift() // 440
l!l
00
MC/DC0%0/1
shift() // 440
shift()
Truth table0%0/2
A
A= shift()
Aresult
11
00
27  
28 sub banned {
29 0 ▶ my ($self) = @_;
Subroutine banned: not called CC=4 SCAR=30.0
Pod documented
30 0 ▶ $self->banned_backpack || $self->banned_community || $self->banned_economy || $self->banned_vac
Branch: 1 branch
BranchTrueFalseTotal
$self->banned_backpack or $self->banned_community or $self->banned_economy or $self->banned_vac 0 0 0
Condition0%0/6
$self->banned_backpack or $self->banned_community or $self->banned_economy
l!l&&r!l&&!r
000
$self->banned_backpack or $self->banned_community
l!l&&r!l&&!r
000
MC/DC0%0/3
$self->banned_backpack or $self->banned_community or $self->banned_economy
$self->banned_backpack $self->banned_community $self->banned_economy
Truth table0%0/4
A or B or C
A= $self->banned_backpackB= $self->banned_communityC= $self->banned_economy
ABCresult
1XX1
01X1
0011
0000
31 }
32  
33 2 1;
34 __END__
↑ Summary BackpackTF/Item.pm »