Collector/Serializer/YAML.pm

filter: Statementstmt 86.6% 13 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 85.0% 17 / 20 CC 1 SCAR 2.2
CC
1
Cov
87%
serialize
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Collector/Serializer/DataDumper.pm ↑ Summary Collector/Engine/Local.pm »
1 package Data::Collector::Serializer::YAML;
2 {
3 1 $Data::Collector::Serializer::YAML::VERSION = '0.15';
4 }
5 # ABSTRACT: A YAML serializer for Data::Collector
6  
7 1 ▶use YAML;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 0 ▶sub serialize {
Subroutine serialize: not called CC=1 SCAR=6.9
Pod documented
12 0 my ( $self, $data ) = @_;
13  
14 0 return Dump($data);
15 }
16  
17 1 __PACKAGE__->meta->make_immutable;
18 1 1;
19  
20  
21  
22 =pod
23  
24 =head1 NAME
25  
26 Data::Collector::Serializer::YAML - A YAML serializer for Data::Collector
27  
28 =head1 VERSION
29  
30 version 0.15
31  
32 =head1 DESCRIPTION
33  
34 Utilizes L<YAML>.
35  
36 =head1 SUBROUTINES/METHODS
37  
38 =head2 serialize
39  
40 Gets data, serializes it and returns it.
41  
42 =head1 AUTHOR
43  
44 Sawyer X <xsawyerx@cpan.org>
45  
46 =head1 COPYRIGHT AND LICENSE
47  
48 This software is copyright (c) 2012 by Sawyer X.
49  
50 This is free software; you can redistribute it and/or modify it under
51 the same terms as the Perl 5 programming language system itself.
52  
53 =cut
54  
55  
56 __END__
« Collector/Serializer/DataDumper.pm ↑ Summary Collector/Engine/Local.pm »