File Coverage

blib/lib/WordList/Phrase/EN/Quote/JamesFT.pm
Criterion Covered Total %
statement 6 17 35.2
branch 0 2 0.0
condition n/a
subroutine 2 5 40.0
pod 3 3 100.0
total 11 27 40.7


line stmt bran cond sub pod time code
1             package WordList::Phrase::EN::Quote::JamesFT;
2              
3 1     1   341718 use strict;
  1         2  
  1         77  
4 1     1   6 use parent 'WordList';
  1         1  
  1         11  
5              
6             our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
7             our $DATE = '2023-12-01'; # DATE
8             our $DIST = 'WordList-Phrase-EN-Quote-JamesFT'; # DIST
9             our $VERSION = '0.002'; # VERSION
10              
11             our %STATS = ("shortest_word_len",35,"num_words_contain_whitespace",5421,"num_words_contains_unicode",11,"num_words_contain_unicode",11,"num_words_contains_nonword_chars",5421,"avg_word_len",97.3894115476849,"longest_word_len",236,"num_words_contains_whitespace",5421,"num_words",5421,"num_words_contain_nonword_chars",5421); # STATS
12              
13             our $DYNAMIC=1;
14             our $SORT = 'custom';
15              
16             sub new {
17 0     0 1   require TableData::Quote::JamesFT;
18              
19 0           my $class = shift;
20 0           my $self = $class->SUPER::new;
21 0           $self->{_table} = TableData::Quote::JamesFT->new;
22 0           $self;
23             }
24              
25             sub next_word {
26 0     0 1   my $self = shift;
27 0 0         return unless $self->{_table}->has_next_row;
28 0           my $row = $self->{_table}->get_next_row_arrayref;
29 0           qq("$row->[0]" -- $row->[1]);
30             }
31              
32             sub reset_iterator {
33 0     0 1   my $self = shift;
34 0           $self->{_table}->reset_iterator;
35             }
36              
37             1;
38             # ABSTRACT: Famous quotes from JamesFT github repository
39              
40             __END__