blib/lib/GraphQL/Houtou/Runtime/InputCoercion.pm

filter: Statementstmt 100% 17 / 17 Branchbran 50.0% 1 / 2 Conditioncond 40.0% 2 / 5 MC/DCmcdc 0.0% 0 / 3 Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 75.7% 25 / 33 CC 4 SCAR 10.3
CC
4
Cov
83%
prepare_variables
4.6
BEGIN
1.0
BEGIN
1.0
CRAP 2.8
« blib/lib/GraphQL/Houtou/Promise/PromiseXS.pm ↑ Summary blib/lib/GraphQL/Houtou/Role/Leaf.pm »
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
BranchTrueFalseTotal
unless ref $program and eval { do { $program->isa("GraphQL::Houtou::Runtime::NativeProgram") } } 0 41 41
Condition33%1/3
ref $program and eval { do { $program->isa("GraphQL::Houtou::Runtime::NativeProgram") } }
!ll&&!rl&&r
0041
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") } }
ABresult
0X0
100
111
13 41 GraphQL::Houtou::_bootstrap_xs();
14 41 ▶ return GraphQL::Houtou::XS::VM::native_program_prepare_variables_xs(
Condition50%1/2
$provided || {}
l!l
410
MC/DC0%0/1
$provided || {}
$provided
Truth table50%1/2
A
A= $provided
Aresult
11
00
15 $runtime_schema,
16 $program,
17 ($provided || {}),
18 );
19 }
20  
21 45 1;
« blib/lib/GraphQL/Houtou/Promise/PromiseXS.pm ↑ Summary blib/lib/GraphQL/Houtou/Role/Leaf.pm »