File Coverage

blib/lib/WordList/Test/OneTwo.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package WordList::Test::OneTwo;
2              
3             our $DATE = '2021-02-23'; # DATE
4             our $VERSION = '0.7.8'; # VERSION
5              
6 2     2   163626 use WordList;
  2         6  
  2         165  
7             our @ISA = qw(WordList);
8              
9             our %STATS = ("avg_word_len",3,"num_words_contain_unicode",0,"num_words_contains_whitespace",0,"shortest_word_len",3,"longest_word_len",3,"num_words",2,"num_words_contain_whitespace",0,"num_words_contains_unicode",0,"num_words_contain_nonword_chars",0,"num_words_contains_nonword_chars",0); # STATS
10              
11             1;
12             # ABSTRACT: Wordlist that contains "one" and "two"
13              
14             =pod
15              
16             =encoding UTF-8
17              
18             =head1 NAME
19              
20             WordList::Test::OneTwo - Wordlist that contains "one" and "two"
21              
22             =head1 VERSION
23              
24             This document describes version 0.7.8 of WordList::Test::OneTwo (from Perl distribution WordList), released on 2021-02-23.
25              
26             =head1 SYNOPSIS
27              
28             use WordList::Test::OneTwo;
29              
30             my $wl = WordList::Test::OneTwo->new;
31              
32             # Pick a (or several) random word(s) from the list
33             my $word = $wl->pick;
34             my @words = $wl->pick(3);
35              
36             # Check if a word exists in the list
37             if ($wl->word_exists('foo')) { ... }
38              
39             # Call a callback for each word
40             $wl->each_word(sub { my $word = shift; ... });
41              
42             # Iterate
43             my $first_word = $wl->first_word;
44             while (defined(my $word = $wl->next_word)) { ... }
45              
46             # Get all the words
47             my @all_words = $wl->all_words;
48              
49             =head1 HOMEPAGE
50              
51             Please visit the project's homepage at L.
52              
53             =head1 SOURCE
54              
55             Source repository is at L.
56              
57             =head1 BUGS
58              
59             Please report any bugs or feature requests on the bugtracker website L
60              
61             When submitting a bug or request, please include a test-file or a
62             patch to an existing test-file that illustrates the bug or desired
63             feature.
64              
65             =head1 AUTHOR
66              
67             perlancar
68              
69             =head1 COPYRIGHT AND LICENSE
70              
71             This software is copyright (c) 2021, 2020, 2018, 2017, 2016 by perlancar@cpan.org.
72              
73             This is free software; you can redistribute it and/or modify it under
74             the same terms as the Perl 5 programming language system itself.
75              
76             =cut
77              
78             __DATA__