File Coverage

lib/Data/Pokemon/Go.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 15 15 100.0


line stmt bran cond sub pod time code
1             package Data::Pokemon::Go;
2 1     1   613 use 5.008001;
  1         4  
3 1     1   5 use strict;
  1         1  
  1         19  
4 1     1   3 use warnings;
  1         2  
  1         49  
5              
6             our $VERSION = "0.13";
7              
8 1     1   550 use Moose;
  1         466415  
  1         7  
9              
10             1;
11             __END__
12              
13             =encoding utf-8
14              
15             =head1 NAME
16              
17             Data::Pokemon::Go - Data for every Pokemon in Pokemon Go
18              
19             =head1 SYNOPSIS
20              
21             use utf8;
22             use Data::Pokemon::Go::Pokemon;
23             my $pg = Data::Pokemon::Go::Pokemon->new( name => 'カイリュー' );
24             print $pg->effective(); # こおり ドラゴン いわ フェアリー
25             print $pg->invalid(); # くさ みず むし じめん ほのお かくとう
26             print $pg->advantage(); # はがね でんき いわ
27             print $pg->disadvantage(); # むし かくとう ドラゴン くさ
28             print $pg->recommended(); # こおり いわ フェアリー
29              
30             use Data::Pokemon::Go::IV;
31             my $iv = Data::Pokemon::Go::IV->new();
32             print $iv->_calculate_CP( name => $pg->name(), LV => 20, ST => 15, AT => 15, DF => 15 );
33             # 2167
34              
35             =head1 DESCRIPTION
36              
37             Data::Pokemon::Go is the helper module for who has less knowledge about Pokemons
38              
39             =head1 TODO
40              
41             =over
42              
43             =item supporting Multi-language is not completely
44              
45             =item YAML for after Unova Region are not available
46              
47             =item Japanese documents are not available L<qiitaで日本語解説を少しだけ|https://qiita.com/worthmine/items/4a51fd74f31b4a97cf3c>
48              
49             =back
50              
51             I can't support all of the above with just only me alone.
52             So, please L<PR|https://github.com/worthmine/Data-Pokemon-Go/pulls>!
53              
54             =head1 LICENSE
55              
56             Copyright (C) Yuki Yoshida.
57              
58             This library is free software; you can redistribute it and/or modify
59             it under the same terms as Perl itself.
60              
61             =head1 AUTHOR
62              
63             Yuki Yoshida E<lt>worthmine@gmail.comE<gt>
64              
65             =cut