| blib/lib/WebService/Braintree/DigestSHA256.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 15 | 16 | 93.7 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 5 | 6 | 83.3 |
| pod | 0 | 1 | 0.0 |
| total | 20 | 23 | 86.9 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package WebService::Braintree::DigestSHA256; | ||||||
| 2 | $WebService::Braintree::DigestSHA256::VERSION = '0.93'; | ||||||
| 3 | |||||||
| 4 | 1 | 1 | 8 | use strict; | |||
| 1 | 4 | ||||||
| 1 | 41 | ||||||
| 5 | 1 | 1 | 482 | use Digest; | |||
| 1 | 782 | ||||||
| 1 | 46 | ||||||
| 6 | 1 | 1 | 11 | use Digest::SHA; | |||
| 1 | 4 | ||||||
| 1 | 63 | ||||||
| 7 | |||||||
| 8 | 1 | 1 | 10 | use vars qw(@ISA @EXPORT @EXPORT_OK %EXPORT_TAGS ); | |||
| 1 | 5 | ||||||
| 1 | 83 | ||||||
| 9 | 1 | 1 | 10 | use Exporter; | |||
| 1 | 4 | ||||||
| 1 | 138 | ||||||
| 10 | our @ISA = qw(Exporter); | ||||||
| 11 | our @EXPORT = qw(new); | ||||||
| 12 | our @EXPORT_OK = qw(); | ||||||
| 13 | |||||||
| 14 | sub new { | ||||||
| 15 | 0 | 0 | 0 | return Digest->new("SHA-256"); | |||
| 16 | } | ||||||
| 17 | |||||||
| 18 | 1; |