Branch Coverage

blib/lib/GraphQL/Directive.pm
Criterion Covered Total %
branch 15 24 62.5


line true false branch
106 0 9 if @_ < 3
0 9 if @_ > 3
0 9 unless ${my $v = bless( {"_is_core" => 1,"_overload_coderef" => sub { ;},"_sub_quoted" => 1,"coercion" => bless( {"_compiled_type_constraint_check" => sub ($) { ;},"display_name" => "to_HashRef","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"coercion_generator" => sub { ;},"compiled_type_constraint" => do{my $o},"constraint" => sub { ;},"constraint_generator" => sub { ;},"deep_explanation" => sub { ;},"display_name" => "HashRef","inline_generator" => sub { ;},"inlined" => sub { ;},"library" => "Types::Standard","my_methods" => {"hashref_allows_key" => sub { ;},"hashref_allows_value" => sub { ;}},"name" => "HashRef","name_generator" => sub { ;},"parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { ;},"coercion" => bless( {"_compiled_type_constraint_check" => sub ($) { ;},"display_name" => "to_Ref","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { ;},"constraint_generator" => sub { ;},"deep_explanation" => sub { ;},"display_name" => "Ref","inline_generator" => sub { ;},"inlined" => sub { ;},"library" => "Types::Standard","name" => "Ref","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { ;},"coercion" => bless( {"_compiled_type_constraint_check" => sub ($) { ;},"display_name" => "to_Defined","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { ;},"display_name" => "Defined","inlined" => sub { ;},"library" => "Types::Standard","name" => "Defined","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { ;},"coercion" => bless( {"_compiled_type_constraint_check" => sub ($) { ;},"display_name" => "to_Item","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { ;},"display_name" => "Item","inlined" => sub { ;},"library" => "Types::Standard","name" => "Item","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { ;},"_sub_quoted" => 2,"coercion" => bless( {"_compiled_type_constraint_check" => do{my $o},"display_name" => "to_Any","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => do{my $o},"display_name" => "Any","inlined" => sub { ;},"library" => "Types::Standard","name" => "Any","uniq" => 1}, 'Type::Tiny' ),"uniq" => 2}, 'Type::Tiny' ),"uniq" => 5}, 'Type::Tiny' ),"uniq" => 14}, 'Type::Tiny' ),"uniq" => 20}, 'Type::Tiny' );$v->{"coercion"}{"type_constraint"} = $v;$v->{"compiled_type_constraint"} = $v->{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"};$v->{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parent"};$v->{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parent"}{"parent"};$v->{"parent"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"} = $v->{"parent"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parent"}{"parent"}{"parent"};$v->{"parent"}{"parent"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"parent"}{"parent"}{"constraint"} = $v->{"parent"}{"parent"}{"parent"}{"constraint"}; \$v}->check($name2type)
0 9 unless ${my $v = bless( {"_is_core" => 1,"_overload_coderef" => sub { ;},"_sub_quoted" => 1,"coercion" => bless( {"_compiled_type_constraint_check" => sub ($) { ;},"display_name" => "to_HashRef","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"coercion_generator" => sub { ;},"compiled_type_constraint" => do{my $o},"constraint" => sub { ;},"constraint_generator" => sub { ;},"deep_explanation" => sub { ;},"display_name" => "HashRef","inline_generator" => sub { ;},"inlined" => sub { ;},"library" => "Types::Standard","my_methods" => {"hashref_allows_key" => sub { ;},"hashref_allows_value" => sub { ;}},"name" => "HashRef","name_generator" => sub { ;},"parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { ;},"coercion" => bless( {"_compiled_type_constraint_check" => sub ($) { ;},"display_name" => "to_Ref","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { ;},"constraint_generator" => sub { ;},"deep_explanation" => sub { ;},"display_name" => "Ref","inline_generator" => sub { ;},"inlined" => sub { ;},"library" => "Types::Standard","name" => "Ref","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { ;},"coercion" => bless( {"_compiled_type_constraint_check" => sub ($) { ;},"display_name" => "to_Defined","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { ;},"display_name" => "Defined","inlined" => sub { ;},"library" => "Types::Standard","name" => "Defined","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { ;},"coercion" => bless( {"_compiled_type_constraint_check" => sub ($) { ;},"display_name" => "to_Item","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { ;},"display_name" => "Item","inlined" => sub { ;},"library" => "Types::Standard","name" => "Item","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { ;},"_sub_quoted" => 2,"coercion" => bless( {"_compiled_type_constraint_check" => do{my $o},"display_name" => "to_Any","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => do{my $o},"display_name" => "Any","inlined" => sub { ;},"library" => "Types::Standard","name" => "Any","uniq" => 1}, 'Type::Tiny' ),"uniq" => 2}, 'Type::Tiny' ),"uniq" => 5}, 'Type::Tiny' ),"uniq" => 14}, 'Type::Tiny' ),"uniq" => 20}, 'Type::Tiny' );$v->{"coercion"}{"type_constraint"} = $v;$v->{"compiled_type_constraint"} = $v->{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"};$v->{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parent"};$v->{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parent"}{"parent"};$v->{"parent"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"} = $v->{"parent"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parent"}{"parent"}{"parent"};$v->{"parent"}{"parent"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"parent"}{"parent"}{"constraint"} = $v->{"parent"}{"parent"}{"parent"}{"constraint"}; \$v}->check($ast_node)
126 2 1 unless grep $_->[1], @argtuples
135 2 0 length $_ ? :
218 0 4723 if @_ < 3
0 4723 if @_ > 3
0 4723 unless ${my $v = bless( {"_is_core" => 1,"_overload_coderef" => sub { ;},"_sub_quoted" => 1,"coercion" => bless( {"_compiled_type_constraint_check" => sub ($) { ;},"display_name" => "to_HashRef","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"coercion_generator" => sub { ;},"compiled_type_constraint" => do{my $o},"constraint" => sub { ;},"constraint_generator" => sub { ;},"deep_explanation" => sub { ;},"display_name" => "HashRef","inline_generator" => sub { ;},"inlined" => sub { ;},"library" => "Types::Standard","my_methods" => {"hashref_allows_key" => sub { ;},"hashref_allows_value" => sub { ;}},"name" => "HashRef","name_generator" => sub { ;},"parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { ;},"coercion" => bless( {"_compiled_type_constraint_check" => sub ($) { ;},"display_name" => "to_Ref","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { ;},"constraint_generator" => sub { ;},"deep_explanation" => sub { ;},"display_name" => "Ref","inline_generator" => sub { ;},"inlined" => sub { ;},"library" => "Types::Standard","name" => "Ref","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { ;},"coercion" => bless( {"_compiled_type_constraint_check" => sub ($) { ;},"display_name" => "to_Defined","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { ;},"display_name" => "Defined","inlined" => sub { ;},"library" => "Types::Standard","name" => "Defined","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { ;},"coercion" => bless( {"_compiled_type_constraint_check" => sub ($) { ;},"display_name" => "to_Item","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { ;},"display_name" => "Item","inlined" => sub { ;},"library" => "Types::Standard","name" => "Item","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { ;},"_sub_quoted" => 2,"coercion" => bless( {"_compiled_type_constraint_check" => do{my $o},"display_name" => "to_Any","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => do{my $o},"display_name" => "Any","inlined" => sub { ;},"library" => "Types::Standard","name" => "Any","uniq" => 1}, 'Type::Tiny' ),"uniq" => 2}, 'Type::Tiny' ),"uniq" => 5}, 'Type::Tiny' ),"uniq" => 14}, 'Type::Tiny' ),"uniq" => 20}, 'Type::Tiny' );$v->{"coercion"}{"type_constraint"} = $v;$v->{"compiled_type_constraint"} = $v->{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"};$v->{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parent"};$v->{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parent"}{"parent"};$v->{"parent"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"} = $v->{"parent"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parent"}{"parent"}{"parent"};$v->{"parent"}{"parent"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"parent"}{"parent"}{"constraint"} = $v->{"parent"}{"parent"}{"parent"}{"constraint"}; \$v}->check($node)
0 4723 unless ${my $v = bless( {"_is_core" => 1,"_overload_coderef" => sub { ;},"_sub_quoted" => 1,"coercion" => bless( {"_compiled_type_constraint_check" => sub ($) { ;},"display_name" => "to_HashRef","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"coercion_generator" => sub { ;},"compiled_type_constraint" => do{my $o},"constraint" => sub { ;},"constraint_generator" => sub { ;},"deep_explanation" => sub { ;},"display_name" => "HashRef","inline_generator" => sub { ;},"inlined" => sub { ;},"library" => "Types::Standard","my_methods" => {"hashref_allows_key" => sub { ;},"hashref_allows_value" => sub { ;}},"name" => "HashRef","name_generator" => sub { ;},"parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { ;},"coercion" => bless( {"_compiled_type_constraint_check" => sub ($) { ;},"display_name" => "to_Ref","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { ;},"constraint_generator" => sub { ;},"deep_explanation" => sub { ;},"display_name" => "Ref","inline_generator" => sub { ;},"inlined" => sub { ;},"library" => "Types::Standard","name" => "Ref","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { ;},"coercion" => bless( {"_compiled_type_constraint_check" => sub ($) { ;},"display_name" => "to_Defined","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { ;},"display_name" => "Defined","inlined" => sub { ;},"library" => "Types::Standard","name" => "Defined","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { ;},"coercion" => bless( {"_compiled_type_constraint_check" => sub ($) { ;},"display_name" => "to_Item","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { ;},"display_name" => "Item","inlined" => sub { ;},"library" => "Types::Standard","name" => "Item","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { ;},"_sub_quoted" => 2,"coercion" => bless( {"_compiled_type_constraint_check" => do{my $o},"display_name" => "to_Any","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => do{my $o},"display_name" => "Any","inlined" => sub { ;},"library" => "Types::Standard","name" => "Any","uniq" => 1}, 'Type::Tiny' ),"uniq" => 2}, 'Type::Tiny' ),"uniq" => 5}, 'Type::Tiny' ),"uniq" => 14}, 'Type::Tiny' ),"uniq" => 20}, 'Type::Tiny' );$v->{"coercion"}{"type_constraint"} = $v;$v->{"compiled_type_constraint"} = $v->{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"};$v->{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parent"};$v->{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parent"}{"parent"};$v->{"parent"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"} = $v->{"parent"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parent"}{"parent"}{"parent"};$v->{"parent"}{"parent"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"parent"}{"parent"}{"constraint"} = $v->{"parent"}{"parent"}{"parent"}{"constraint"}; \$v}->check($variables)
220 4690 33 unless $node->{'directives'}
221 4702 21 unless $d