| 1 | package Net::Duowan::DNS::Owner; | ||||||||||||
| 2 | |||||||||||||
| 3 | 2 | ▶ | use 5.006; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 2 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | 2 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | 2 | ▶ | use Carp qw/croak/; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | 2 | ▶ | use JSON; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 8 | 2 | ▶ | use base 'Net::Duowan::DNS::Common'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 9 | |||||||||||||
| 10 | 2 | ▶ | use vars qw/$VERSION/; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 11 | 2 | $VERSION = '1.2.0'; | |||||||||||
| 12 | |||||||||||||
| 13 | 0 | ▶ | sub new { | ||||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 14 | 0 | my $class = shift; | |||||||||||
| 15 | 0 | my $psp = shift; | |||||||||||
| 16 | 0 | my $token = shift; | |||||||||||
| 17 | 0 | bless { psp => $psp, token => $token },$class; | |||||||||||
| 18 | } | ||||||||||||
| 19 | |||||||||||||
| 20 | 0 | ▶ | sub reGenerateToken { | ||||||||||
|
Subroutine
reGenerateToken: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 21 | 0 | my $self = shift; | |||||||||||
| 22 | |||||||||||||
| 23 | 0 | my $psp = $self->{psp}; | |||||||||||
| 24 | 0 | my $token = $self->{token}; | |||||||||||
| 25 | 0 | my $act = 'user_edit_token'; | |||||||||||
| 26 | 0 | my %reqs = (a=>$act, psp=>$psp, tkn=>$token); | |||||||||||
| 27 | |||||||||||||
| 28 | 0 | return $self->reqTemplate(%reqs); | |||||||||||
| 29 | } | ||||||||||||
| 30 | |||||||||||||
| 31 | 0 | ▶ | sub fetchOpsLog { | ||||||||||
|
Subroutine
fetchOpsLog: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||||
| 32 | 0 | my $self = shift; | |||||||||||
| 33 | |||||||||||||
| 34 | 0 | my $psp = $self->{psp}; | |||||||||||
| 35 | 0 | my $token = $self->{token}; | |||||||||||
| 36 | 0 | my $act = 'userlog_load_all'; | |||||||||||
| 37 | |||||||||||||
| 38 | 0 | my %args = @_; | |||||||||||
| 39 | 0 | ▶ | my $offset = $args{offset} || 0; | ||||||||||
|
Condition0%0/2
$args{'offset'} || 0
MC/DC0%0/1
$args{'offset'} || 0
$args{'offset'}
Truth table0%0/2
A
A= $args{'offset'}
| |||||||||||||
| 40 | 0 | ▶ | my $number = $args{number} || 100; | ||||||||||
|
Condition0%0/2
$args{'number'} || 100
MC/DC0%0/1
$args{'number'} || 100
$args{'number'}
Truth table0%0/2
A
A= $args{'number'}
| |||||||||||||
| 41 | 0 | my %reqs = (a=>$act, psp=>$psp, tkn=>$token, offset=>$offset, number=>$number); | |||||||||||
| 42 | |||||||||||||
| 43 | 0 | return $self->reqTemplate(%reqs); | |||||||||||
| 44 | } | ||||||||||||
| 45 | |||||||||||||
| 46 | 0 | ▶ | sub fetchZoneApplyHistory { | ||||||||||
|
Subroutine
fetchZoneApplyHistory: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||||
| 47 | 0 | my $self = shift; | |||||||||||
| 48 | |||||||||||||
| 49 | 0 | my $psp = $self->{psp}; | |||||||||||
| 50 | 0 | my $token = $self->{token}; | |||||||||||
| 51 | 0 | my $act = 'applyhist_load_all'; | |||||||||||
| 52 | |||||||||||||
| 53 | 0 | my %args = @_; | |||||||||||
| 54 | 0 | ▶ | my $offset = $args{offset} || 0; | ||||||||||
|
Condition0%0/2
$args{'offset'} || 0
MC/DC0%0/1
$args{'offset'} || 0
$args{'offset'}
Truth table0%0/2
A
A= $args{'offset'}
| |||||||||||||
| 55 | 0 | ▶ | my $number = $args{number} || 100; | ||||||||||
|
Condition0%0/2
$args{'number'} || 100
MC/DC0%0/1
$args{'number'} || 100
$args{'number'}
Truth table0%0/2
A
A= $args{'number'}
| |||||||||||||
| 56 | 0 | my %reqs = (a=>$act, psp=>$psp, tkn=>$token, offset=>$offset, number=>$number); | |||||||||||
| 57 | |||||||||||||
| 58 | 0 | return $self->reqTemplate(%reqs); | |||||||||||
| 59 | } | ||||||||||||
| 60 | |||||||||||||
| 61 | 2 | 1; | |||||||||||