| 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.92'; | ||||||
| 3 | |||||||
| 4 | 1 | 1 | 6 | use strict; | |||
| 1 | 2 | ||||||
| 1 | 23 | ||||||
| 5 | 1 | 1 | 269 | use Digest; | |||
| 1 | 390 | ||||||
| 1 | 23 | ||||||
| 6 | 1 | 1 | 5 | use Digest::SHA; | |||
| 1 | 2 | ||||||
| 1 | 31 | ||||||
| 7 | |||||||
| 8 | 1 | 1 | 14 | use vars qw(@ISA @EXPORT @EXPORT_OK %EXPORT_TAGS ); | |||
| 1 | 2 | ||||||
| 1 | 43 | ||||||
| 9 | 1 | 1 | 5 | use Exporter; | |||
| 1 | 2 | ||||||
| 1 | 72 | ||||||
| 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; |