| 1 | package GraphQL::Houtou::Runtime::InputCoercion; | ||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | 45 | ▶ | use 5.014; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | 45 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | 45 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||
| 7 | 45 | ▶ | use GraphQL::Houtou (); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||
| 9 | 41 | ▶ | sub prepare_variables { | ||||||||||||||||||||||||||
|
Subroutine
prepare_variables: called CC=4 SCAR=15.2
Pod
undocumented
| |||||||||||||||||||||||||||||
| 10 | 41 | my ($runtime_schema, $program, $provided) = @_; | |||||||||||||||||||||||||||
| 11 | die "Active runtime paths expect a GraphQL::Houtou::Runtime::NativeProgram.\n" | ||||||||||||||||||||||||||||
| 12 | 41 | ▶ | if !ref($program) || !eval { $program->isa('GraphQL::Houtou::Runtime::NativeProgram') }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
ref $program and eval {
do {
$program->isa("GraphQL::Houtou::Runtime::NativeProgram")
}
}
MC/DC0%0/2
ref $program and eval {
do {
$program->isa("GraphQL::Houtou::Runtime::NativeProgram")
}
}
ref $program
eval {
do {
$program->isa("GraphQL::Houtou::Runtime::NativeProgram")
}
}
Truth table33%1/3
A and B
A= ref $programB= eval {
do {
$program->isa("GraphQL::Houtou::Runtime::NativeProgram")
}
}
| |||||||||||||||||||||||||||||
| 13 | 41 | GraphQL::Houtou::_bootstrap_xs(); | |||||||||||||||||||||||||||
| 14 | 41 | ▶ | return GraphQL::Houtou::XS::VM::native_program_prepare_variables_xs( | ||||||||||||||||||||||||||
|
Condition50%1/2
$provided || {}
MC/DC0%0/1
$provided || {}
$provided
Truth table50%1/2
A
A= $provided
| |||||||||||||||||||||||||||||
| 15 | $runtime_schema, | ||||||||||||||||||||||||||||
| 16 | $program, | ||||||||||||||||||||||||||||
| 17 | ($provided || {}), | ||||||||||||||||||||||||||||
| 18 | ); | ||||||||||||||||||||||||||||
| 19 | } | ||||||||||||||||||||||||||||
| 20 | |||||||||||||||||||||||||||||
| 21 | 45 | 1; | |||||||||||||||||||||||||||