Kit/ManifestReader/YAML.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 23 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Kit/ManifestReader/JSON.pm ↑ Summary Kit/Role/Assembler.pm »
1 package Email::MIME::Kit::ManifestReader::YAML 3.000007;
2 # ABSTRACT: read manifest.yaml files
3  
4 1 ▶use v5.20.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 with 'Email::MIME::Kit::Role::ManifestReader',
8 'Email::MIME::Kit::Role::ManifestDesugarer';
9  
10 1 ▶use YAML::XS ();
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 sub read_manifest {
13 1 ▶ my ($self) = @_;
Subroutine read_manifest: called CC=1 SCAR=0.0
14  
15 1 my $yaml_ref = $self->kit->kit_reader->get_kit_entry('manifest.yaml');
16  
17 # YAML::XS is documented as expecting UTF-8 bytes, which we give it.
18 1 my ($content) = YAML::XS::Load($$yaml_ref);
19  
20 1 return $content;
21 }
22  
23 1 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
24 1 __PACKAGE__->meta->make_immutable;
25 1 1;
26  
27 __END__
28  
29 =pod
30  
31 =encoding UTF-8
32  
33 =head1 NAME
34  
35 Email::MIME::Kit::ManifestReader::YAML - read manifest.yaml files
36  
37 =head1 VERSION
38  
39 version 3.000007
40  
41 =head1 PERL VERSION
42  
43 This library should run on perls released even a long time ago. It should work
44 on any version of perl released in the last five years.
45  
46 Although it may work on older versions of perl, no guarantee is made that the
47 minimum required version will not be increased. The version may be increased
48 for any reason, and there is no promise that patches will be accepted to lower
49 the minimum required perl.
50  
51 =head1 AUTHOR
52  
53 Ricardo Signes <rjbs@cpan.org>
54  
55 =head1 COPYRIGHT AND LICENSE
56  
57 This software is copyright (c) 2023 by Ricardo Signes.
58  
59 This is free software; you can redistribute it and/or modify it under
60 the same terms as the Perl 5 programming language system itself.
61  
62 =cut
« Kit/ManifestReader/JSON.pm ↑ Summary Kit/Role/Assembler.pm »