QuoteCC/Input/Text.pm

filter: Statementstmt 81.8% 18 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 87.5% 7 / 8 Podpod 0.0% 0 / 1 totaltotal 80.6% 25 / 31 CC 1 SCAR 1.2
CC
1
Cov
82%
quotes
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« QuoteCC/Input/Fortune.pm ↑ Summary QuoteCC/Input/YAML.pm »
1 package App::QuoteCC::Input::Text;
2 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 $App::QuoteCC::Input::Text::AUTHORITY = 'cpan:AVAR';
4 }
5 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 $App::QuoteCC::Input::Text::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 chomp(my @quotes = <$handle>);
22 0 return \@quotes;
23 }
24  
25 1 __PACKAGE__->meta->make_immutable;
26  
27 =encoding utf8
28  
29 =head1 NAME
30  
31 App::QuoteCC::Input::Text - Read newline delimited quotes
32  
33 =head1 AUTHOR
34  
35 E<AElig>var ArnfjE<ouml>rE<eth> Bjarmason <avar@cpan.org>
36  
37 =head1 LICENSE AND COPYRIGHT
38  
39 Copyright 2010 E<AElig>var ArnfjE<ouml>rE<eth> Bjarmason <avar@cpan.org>
40  
41 This program is free software, you can redistribute it and/or modify
42 it under the same terms as Perl itself.
43  
44 =cut
« QuoteCC/Input/Fortune.pm ↑ Summary QuoteCC/Input/YAML.pm »