File Coverage

lib/Jacode.pm
Criterion Covered Total %
statement 32 33 96.9
branch 3 6 50.0
condition n/a
subroutine 8 9 88.8
pod n/a
total 43 48 89.5


line stmt bran cond sub pod time code
1             package Jacode;
2             ######################################################################
3             #
4             # Jacode - Perl program for Japanese character code conversion
5             #
6             # https://metacpan.org/dist/Jacode
7             #
8             # Copyright (c) 2018, 2019, 2020, 2022, 2023, 2026 INABA Hitoshi in a CPAN
9             ######################################################################
10              
11             $VERSION = '2.13.4.33';
12             $VERSION = $VERSION;
13              
14 458     458   3732621 use 5.00503;
  458         1544  
15 458     458   2164 use strict;
  458         2544  
  458         21404  
16 458 50   458   10740 BEGIN { $INC{'warnings.pm'} = '' if $] < 5.006 }; use warnings; local $^W=1;
  458     458   2174  
  458         927  
  458         32244  
17 458     458   2823 use vars qw($AUTOLOAD);
  458         1014  
  458         83368  
18              
19             sub AUTOLOAD {
20 458 50   458   63388945 return if $AUTOLOAD =~ /::DESTROY$/;
21              
22 458         4778 require File::Basename;
23 458         1236 require "@{[File::Basename::dirname(__FILE__)]}/\L@{[__PACKAGE__]}\E.pl";
  458         32512  
  458         1224770  
24 458         2381 (my $callee = $AUTOLOAD) =~ s<^@{[__PACKAGE__]}::><\L@{[__PACKAGE__]}\E::>;
  458         2750  
  458         9426  
25              
26 458     458   2622 no strict qw(refs);
  458         821  
  458         74921  
27 458         2401 *{$AUTOLOAD} = sub {
28 420074     420074   4916823 require Carp;
29 420074         434412 local $@;
30 420074         476201 my $return = eval {
31 420074         760894 &$callee;
32             };
33 420074 50       615639 if ($@) {
34 0         0 Carp::croak($@);
35             }
36 420074         592535 return $return;
37 458         2811 };
38              
39 458         1861 goto &$AUTOLOAD;
40             }
41              
42       0     sub DESTROY { }
43              
44             1;
45              
46             __END__