File Coverage

blib/lib/Email/MIME/Kit/ManifestReader/JSON.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 15 15 100.0


line stmt bran cond sub pod time code
1             package Email::MIME::Kit::ManifestReader::JSON 3.000008;
2             # ABSTRACT: read manifest.json files
3              
4 6     6   2996 use v5.20.0;
  6         26  
5 6     6   34 use Moose;
  6         12  
  6         62  
6              
7             with 'Email::MIME::Kit::Role::ManifestReader',
8             'Email::MIME::Kit::Role::ManifestDesugarer';
9              
10 6     6   48488 use JSON 2;
  6         49165  
  6         34  
11              
12             sub read_manifest {
13             my ($self) = @_;
14              
15             my $json_ref = $self->kit->kit_reader->get_kit_entry('manifest.json');
16              
17             my $content = JSON->new->utf8->decode($$json_ref);
18             }
19              
20 6     6   1138 no Moose;
  6         17  
  6         48  
21             __PACKAGE__->meta->make_immutable;
22             1;
23              
24             __END__
25              
26             =pod
27              
28             =encoding UTF-8
29              
30             =head1 NAME
31              
32             Email::MIME::Kit::ManifestReader::JSON - read manifest.json files
33              
34             =head1 VERSION
35              
36             version 3.000008
37              
38             =head1 PERL VERSION
39              
40             This library should run on perls released even a long time ago. It should
41             work on any version of perl released in the last five years.
42              
43             Although it may work on older versions of perl, no guarantee is made that the
44             minimum required version will not be increased. The version may be increased
45             for any reason, and there is no promise that patches will be accepted to
46             lower the minimum required perl.
47              
48             =head1 AUTHOR
49              
50             Ricardo Signes <cpan@semiotic.systems>
51              
52             =head1 COPYRIGHT AND LICENSE
53              
54             This software is copyright (c) 2023 by Ricardo Signes.
55              
56             This is free software; you can redistribute it and/or modify it under
57             the same terms as the Perl 5 programming language system itself.
58              
59             =cut