| 1 | package GraphQL::Houtou::Type; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 62 | ▶ | use 5.014; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | 62 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | 62 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | 2055 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 8 | 2055 | my ($class, %args) = @_; | |||||||||||||||||||
| 9 | my $self = bless { | ||||||||||||||||||||
| 10 | 2055 | ▶ | is_introspection => $args{is_introspection} ? 1 : 0, | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 11 | }, $class; | ||||||||||||||||||||
| 12 | 2055 | return $self; | |||||||||||||||||||
| 13 | } | ||||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | 136 | ▶ | sub is_introspection { | ||||||||||||||||||
|
Subroutine
is_introspection: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 16 | 136 | return $_[0]->{is_introspection}; | |||||||||||||||||||
| 17 | } | ||||||||||||||||||||
| 18 | |||||||||||||||||||||
| 19 | 0 | ▶ | sub list { | ||||||||||||||||||
|
Subroutine
list: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||
| 20 | 0 | require GraphQL::Houtou::Type::List; | |||||||||||||||||||
| 21 | 0 | ▶ | $_[0]->{_houtou_list} ||= GraphQL::Houtou::Type::List->new(of => $_[0]); | ||||||||||||||||||
|
Condition0%0/3
$_[0]{"_houtou_list"} ||= "GraphQL::Houtou::Type::List"->new("of", $_[0])
MC/DC0%0/2
$_[0]{"_houtou_list"} ||= "GraphQL::Houtou::Type::List"->new("of", $_[0])
$_[0]{"_houtou_list"}
"GraphQL::Houtou::Type::List"->new("of", $_[0])
Truth table0%0/3
A ||= B
A= $_[0]{"_houtou_list"}B= "GraphQL::Houtou::Type::List"->new("of", $_[0])
| |||||||||||||||||||||
| 22 | } | ||||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | 22 | ▶ | sub uplift { | ||||||||||||||||||
|
Subroutine
uplift: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 25 | 22 | return $_[1]; | |||||||||||||||||||
| 26 | } | ||||||||||||||||||||
| 27 | |||||||||||||||||||||
| 28 | 62 | 1; | |||||||||||||||||||
| 29 | |||||||||||||||||||||
| 30 | __END__ | ||||||||||||||||||||