lib/Crypt/Perl/JWK.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 13 | 13 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 18 | 19 | 94.7 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Crypt::Perl::JWK; | ||||||
2 | |||||||
3 | 3 | 3 | 17 | use strict; | |||
3 | 5 | ||||||
3 | 73 | ||||||
4 | 3 | 3 | 12 | use warnings; | |||
3 | 4 | ||||||
3 | 91 | ||||||
5 | |||||||
6 | 3 | 3 | 384 | use MIME::Base64 (); | |||
3 | 508 | ||||||
3 | 50 | ||||||
7 | |||||||
8 | 3 | 3 | 14 | use Crypt::Perl::BigInt (); | |||
3 | 3 | ||||||
3 | 138 | ||||||
9 | |||||||
10 | sub jwk_num_to_bigint { | ||||||
11 | 22 | 22 | 0 | 57 | return Crypt::Perl::BigInt->from_bytes( MIME::Base64::decode_base64url($_[0])); | ||
12 | } | ||||||
13 | |||||||
14 | 1; |