File Coverage

blib/lib/OpenTracing/Implementation/NoOp.pm
Criterion Covered Total %
statement 13 16 81.2
branch 1 2 50.0
condition n/a
subroutine 5 6 83.3
pod 1 1 100.0
total 20 25 80.0


line stmt bran cond sub pod time code
1             package OpenTracing::Implementation::NoOp;
2              
3 1     1   126390 use strict;
  1         2  
  1         32  
4 1     1   5 use warnings;
  1         3  
  1         47  
5              
6             our $VERSION = 'v0.72.1';
7              
8              
9              
10 1     1   548 use aliased 'OpenTracing::Implementation::NoOp::Tracer';
  1         845  
  1         7  
11              
12              
13              
14             sub bootstrap_tracer {
15 0     0 1   my $implementation_class = shift;
16            
17 0           my @implementation_args = @_;
18            
19 0           return Tracer->new( @implementation_args );
20             }
21              
22              
23              
24             BEGIN {
25 1     1   143 use Role::Tiny::With;
  1         3  
  1         49  
26             with 'OpenTracing::Implementation::Interface::Bootstrap'
27             if $ENV{OPENTRACING_INTERFACE}
28 1 50   1   31 } # check at compile time, perl -c will work
29              
30              
31              
32             1;