blib/lib/Net/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 Net::Braintree::DigestSHA256; | ||||||
2 | |||||||
3 | 1 | 1 | 4 | use strict; | |||
1 | 2 | ||||||
1 | 32 | ||||||
4 | 1 | 1 | 1012 | use Digest; | |||
1 | 441 | ||||||
1 | 25 | ||||||
5 | 1 | 1 | 5 | use Digest::SHA; | |||
1 | 2 | ||||||
1 | 38 | ||||||
6 | |||||||
7 | 1 | 1 | 5 | use vars qw(@ISA @EXPORT @EXPORT_OK %EXPORT_TAGS ); | |||
1 | 1 | ||||||
1 | 49 | ||||||
8 | 1 | 1 | 4 | use Exporter; | |||
1 | 1 | ||||||
1 | 83 | ||||||
9 | our @ISA = qw(Exporter); | ||||||
10 | our @EXPORT = qw(new); | ||||||
11 | our @EXPORT_OK = qw(); | ||||||
12 | |||||||
13 | sub new { | ||||||
14 | 0 | 0 | 0 | return Digest->new("SHA-256"); | |||
15 | } | ||||||
16 | |||||||
17 | 1; |