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 | 16 | use strict; | |||
3 | 4 | ||||||
3 | 75 | ||||||
4 | 3 | 3 | 11 | use warnings; | |||
3 | 5 | ||||||
3 | 67 | ||||||
5 | |||||||
6 | 3 | 3 | 348 | use MIME::Base64 (); | |||
3 | 480 | ||||||
3 | 36 | ||||||
7 | |||||||
8 | 3 | 3 | 13 | use Crypt::Perl::BigInt (); | |||
3 | 5 | ||||||
3 | 139 | ||||||
9 | |||||||
10 | sub jwk_num_to_bigint { | ||||||
11 | 22 | 22 | 0 | 71 | return Crypt::Perl::BigInt->from_bytes( MIME::Base64::decode_base64url($_[0])); | ||
12 | } | ||||||
13 | |||||||
14 | 1; |