blib/lib/Time/Format_XS.pm

filter: Statementstmt 75.0% 12 / 16 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod n/a totaltotal 66.6% 14 / 21 CC 2 SCAR 12.5
CC
2
Cov
67%
_croak
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.5
↑ Summary Format_XS.xs »
1 =for gpg
2 -----BEGIN PGP SIGNED MESSAGE-----
3 Hash: SHA1
4  
5 =head1 NAME
6  
7 Time::Format_XS - Companion module for Time::Format, to speed up time formatting.
8  
9 =head1 VERSION
10  
11 This document describes version 1.03 of Time::Format_XS, June 18, 2009.
12  
13 =cut
14  
15 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 package Time::Format_XS;
17 4 ▶use vars qw($VERSION %PLCOMPAT);
Subroutine BEGIN: called CC=1 SCAR=0.0
18 4 $VERSION = '1.03';
19  
20 # List of the perl Time::Format versions that this module is compatible with:
21 4 %PLCOMPAT = map {$_ => 1} qw(1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.10 1.11);
22  
23 sub _croak
24 0 ▶{
Subroutine _croak: not called CC=2 SCAR=17.9
25 0 eval {require Carp;};
26 0 ▶ die @_ if $@;
Branch: 1 branch
BranchTrueFalseTotal
if $@ 0 0 0
27 0 Carp::croak(@_);
28 }
29  
30 4 require XSLoader;
31 4 XSLoader::load('Time::Format_XS', $VERSION);
32 4 1;
33 __END__
↑ Summary Format_XS.xs »