File Coverage

blib/lib/Acme/Math/XS.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1 2     2   24431 use strict; use warnings;
  2     2   4  
  2         81  
  2         10  
  2         3  
  2         127  
2             package Acme::Math::XS;
3             our $VERSION = '0.0.3';
4              
5 2     2   10 use Exporter 'import';
  2         5  
  2         115  
6             our @EXPORT = qw(
7             add
8             subtract
9             );
10              
11 2     2   791 use Acme::Math::XS::Inline C => <<'...';
  2         5  
  2         63  
12             long add(long a, long b) {
13             return a + b;
14             }
15              
16             long subtract(long a, long b) {
17             return a - b;
18             }
19             ...
20              
21             1;