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 | 5 | use strict; | |||
1 | 1 | ||||||
1 | 23 | ||||||
4 | 1 | 1 | 407 | use Digest; | |||
1 | 379 | ||||||
1 | 21 | ||||||
5 | 1 | 1 | 5 | use Digest::SHA; | |||
1 | 2 | ||||||
1 | 32 | ||||||
6 | |||||||
7 | 1 | 1 | 5 | use vars qw(@ISA @EXPORT @EXPORT_OK %EXPORT_TAGS ); | |||
1 | 1 | ||||||
1 | 41 | ||||||
8 | 1 | 1 | 3 | use Exporter; | |||
1 | 1 | ||||||
1 | 74 | ||||||
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; |