QuoteCC/Input/Fortune.pm

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