OpenTelemetry/X.pm

filter: Statementstmt 100% 12 / 12 Branchbran 100% 2 / 2 Conditioncond 66.6% 2 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 4 / 4 Podpod 100% 2 / 2 totaltotal 88.0% 22 / 25 CC 3 SCAR 7.0
CC
3
Cov
94%
create
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« OpenTelemetry/Propagator/TextMap.pm ↑ Summary OpenTelemetry/Exporter.pm »
1 package OpenTelemetry::X;
2  
3 17 our $VERSION = '0.040';
4  
5 17 ▶use X::Tiny;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 17 ▶use parent 'X::Tiny::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 16 ▶sub to_string { '' . shift->[0] } # Do not print exception type
Subroutine to_string: called CC=1 SCAR=0.0
Pod documented
9  
10 19 ▶sub create {
Subroutine create: called CC=3 SCAR=11.0
Pod documented
11 19 ▶ my $pkg = ref($_[0]) || $_[0];
Condition66%2/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
1180
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table66%2/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
12  
13 19 ▶ die "The use of $pkg->create is not allowed. Call OpenTelemetry::X->create instead"
Branch: 1 branch
BranchTrueFalseTotal
unless $pkg eq "OpenTelemetry::X" 1 18 19
14 unless $pkg eq 'OpenTelemetry::X';
15  
16 18 goto \&X::Tiny::create;
17 }
18  
19 17 1;
« OpenTelemetry/Propagator/TextMap.pm ↑ Summary OpenTelemetry/Exporter.pm »