Branch Coverage

blib/lib/OpenTracing/Role/ScopeManager.pm
Criterion Covered Total %
branch 10 14 71.4


line true false branch
53 0 6 if @_ < 5
0 4 if @_ > 1 and (@_ - 1) % 2
3 1 exists ${__rest}{"span"} ? :
2 5 exists ${__rest}{"finish_span_on_close"} ? :
0 2 if keys %{__rest}
0 3 unless ${my $v = bless( {"_is_core" => 1,"_overload_coderef" => sub { ;},"_overrides_assert_return" => "","coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Object","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { ;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.26.1/Types/Standard.pm","line" => 568,"package" => "Types::Standard"},"deprecated" => "","display_name" => "Object","inlined" => sub { ;},"is_object" => 1,"library" => "Types::Standard","name" => "Object","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { ;},"_overrides_assert_return" => "","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 { ;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.26.1/Types/Standard.pm","line" => 428,"package" => "Types::Standard"},"deprecated" => "","display_name" => "Ref","inline_generator" => sub { ;},"inlined" => sub { ;},"library" => "Types::Standard","name" => "Ref","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { ;},"_overrides_assert_return" => "","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},"complementary_type" => bless( {"_is_core" => 1,"_overload_coderef" => sub { ;},"_overrides_assert_return" => "","coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Undef","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complementary_type" => {},"constraint" => sub { ;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.26.1/Types/Standard.pm","line" => 245,"package" => "Types::Standard"},"deprecated" => "","display_name" => "Undef","inlined" => sub { ;},"library" => "Types::Standard","name" => "Undef","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { ;},"_overrides_assert_return" => "","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 { ;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.26.1/Types/Standard.pm","line" => 217,"package" => "Types::Standard"},"deprecated" => "","display_name" => "Item","inlined" => sub { ;},"library" => "Types::Standard","name" => "Item","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { ;},"_overrides_assert_return" => "","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},"complement_name" => "None","constraint" => do{my $o},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.26.1/Types/Standard.pm","line" => 211,"package" => "Types::Standard"},"deprecated" => "","display_name" => "Any","inlined" => sub { ;},"library" => "Types::Standard","name" => "Any","type_default" => sub { ;},"uniq" => 13}, 'Type::Tiny' ),"uniq" => 14}, 'Type::Tiny' ),"type_default" => sub { ;},"uniq" => 16}, 'Type::Tiny' ),"constraint" => sub { ;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.26.1/Types/Standard.pm","line" => 253,"package" => "Types::Standard"},"deprecated" => "","display_name" => "Defined","inlined" => sub { ;},"library" => "Types::Standard","name" => "Defined","parent" => {},"uniq" => 17}, 'Type::Tiny' ),"uniq" => 26}, 'Type::Tiny' ),"uniq" => 34}, '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"}{"complementary_type"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parent"}{"complementary_type"};$v->{"parent"}{"parent"}{"complementary_type"}{"compiled_type_constraint"} = $v->{"parent"}{"parent"}{"complementary_type"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"complementary_type"}{"complementary_type"} = $v->{"parent"}{"parent"};$v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parent"}{"complementary_type"}{"parent"};$v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"} = $v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"};$v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"constraint"} = $v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"constraint"};$v->{"parent"}{"parent"}{"parent"} = $v->{"parent"}{"parent"}{"complementary_type"}{"parent"}; \$v}->check($self)
1 2 unless bless( {"_caller_level" => 1,"_overload_coderef" => sub { ;},"_overrides_assert_return" => "","compiled_type_constraint" => sub ;,"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.26.1/Type/Tiny/ConstrainedObject.pm","line" => 36,"package" => "Type::Tiny::ConstrainedObject"},"deprecated" => "","display_name" => "Span","inlined" => sub { ;},"library" => "OpenTracing::Types","methods" => ["get_context","overwrite_operation_name","finish","add_tag","add_tags","get_tags","log_data","add_baggage_item","add_baggage_items","get_baggage_item","get_baggage_items"],"name" => "Span","uniq" => 10}, 'Type::Tiny::Duck' )->check($span)