| 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]
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0]
$_[0]
Truth table66%2/3
A || B
A= ref $_[0]B= $_[0]
| |||||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | 19 | ▶ | die "The use of $pkg->create is not allowed. Call OpenTelemetry::X->create instead" | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 14 | unless $pkg eq 'OpenTelemetry::X'; | ||||||||||||||||||||
| 15 | |||||||||||||||||||||
| 16 | 18 | goto \&X::Tiny::create; | |||||||||||||||||||
| 17 | } | ||||||||||||||||||||
| 18 | |||||||||||||||||||||
| 19 | 17 | 1; | |||||||||||||||||||