QuoteCC/Input/YAML.pm

filter: Statementstmt 80.7% 21 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 88.8% 8 / 9 Podpod 0.0% 0 / 1 totaltotal 80.5% 29 / 36 CC 1 SCAR 1.1
CC
1
Cov
81%
quotes
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« QuoteCC/Input/Text.pm ↑ Summary
1 package App::QuoteCC::Input::YAML;
2 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 $App::QuoteCC::Input::YAML::AUTHORITY = 'cpan:AVAR';
4 }
5 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 $App::QuoteCC::Input::YAML::VERSION = '0.10';
7 }
8  
9 1 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use YAML::Syck qw/ Load /;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use namespace::clean -except => 'meta';
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 1 with qw/ App::QuoteCC::Role::Input /;
17  
18 0 ▶sub quotes {
Subroutine quotes: not called CC=1 SCAR=6.9
Pod undocumented
19 0 my ($self) = @_;
20 0 my $handle = $self->file_handle;
21  
22 0 my $content = join '', <$handle>;
23 0 my $yaml = Load( $content );
24 0 return $yaml;
25 }
26  
27 1 __PACKAGE__->meta->make_immutable;
28  
29 =encoding utf8
30  
31 =head1 NAME
32  
33 App::QuoteCC::Input::YAML - Read quotes from a YAML file with L<YAML::XS>
34  
35 =head1 AUTHOR
36  
37 E<AElig>var ArnfjE<ouml>rE<eth> Bjarmason <avar@cpan.org>
38  
39 =head1 LICENSE AND COPYRIGHT
40  
41 Copyright 2010 E<AElig>var ArnfjE<ouml>rE<eth> Bjarmason <avar@cpan.org>
42  
43 This program is free software, you can redistribute it and/or modify
44 it under the same terms as Perl itself.
45  
46 =cut
« QuoteCC/Input/Text.pm ↑ Summary