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 | 24 | use strict; | |||
3 | 6 | ||||||
3 | 96 | ||||||
4 | 3 | 3 | 15 | use warnings; | |||
3 | 5 | ||||||
3 | 79 | ||||||
5 | |||||||
6 | 3 | 3 | 454 | use MIME::Base64 (); | |||
3 | 646 | ||||||
3 | 51 | ||||||
7 | |||||||
8 | 3 | 3 | 20 | use Crypt::Perl::BigInt (); | |||
3 | 6 | ||||||
3 | 183 | ||||||
9 | |||||||
10 | sub jwk_num_to_bigint { | ||||||
11 | 22 | 22 | 0 | 67 | return Crypt::Perl::BigInt->from_bytes( MIME::Base64::decode_base64url($_[0])); | ||
12 | } | ||||||
13 | |||||||
14 | 1; |