| 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 | 1 | 1 | 25574 | use strict; use warnings; | |||
| 1 | 1 | 2 | |||||
| 1 | 34 | ||||||
| 1 | 11 | ||||||
| 1 | 1 | ||||||
| 1 | 43 | ||||||
| 2 | package Acme::Math::XS; | ||||||
| 3 | # our $VERSION = 'x.x.x'; | ||||||
| 4 | |||||||
| 5 | 1 | 1 | 4 | use Exporter 'import'; | |||
| 1 | 4 | ||||||
| 1 | 55 | ||||||
| 6 | our @EXPORT = qw( | ||||||
| 7 | add | ||||||
| 8 | subtract | ||||||
| 9 | ); | ||||||
| 10 | |||||||
| 11 | 1 | 1 | 384 | use Acme::Math::XS::Inline C => <<'...'; | |||
| 1 | 2 | ||||||
| 1 | 52 | ||||||
| 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; |