File Coverage

blib/lib/AI/Pathfinding/OptimizeMultiple/Scan.pm
Criterion Covered Total %
statement 13 17 76.4
branch n/a
condition n/a
subroutine 5 7 71.4
pod 3 3 100.0
total 21 27 77.7


line stmt bran cond sub pod time code
1             $AI::Pathfinding::OptimizeMultiple::Scan::VERSION = '0.0.17';
2             use strict;
3 2     2   16 use warnings;
  2         5  
  2         1348  
4 2     2   12  
  2         9  
  2         56  
5             use 5.012;
6 2     2   57  
  2         10  
7             use MooX qw/late/;
8 2     2   18  
  2         10  
  2         13  
9             has cmd_line => ( isa => 'Str', is => 'ro', required => 1, );
10             has id => ( isa => 'Str', is => 'ro', required => 1, );
11             has used => ( isa => 'Bool', is => 'rw', default => sub { 0; } );
12              
13             {
14             my $self = shift;
15             $self->used(1);
16 8     8 1 17 }
17 8         145  
18             {
19             my $self = shift;
20             return $self->used();
21             }
22 0     0 1    
23 0           {
24             my $self = shift;
25              
26             return "./data/" . $self->id() . ".data.bin";
27             }
28 0     0 1    
29             1;
30 0            
31              
32             =pod
33              
34             =encoding UTF-8
35              
36             =head1 NAME
37              
38             AI::Pathfinding::OptimizeMultiple::Scan
39              
40             =head1 VERSION
41              
42             version 0.0.17
43              
44             =head1 SLOTS
45              
46             =head2 $scan->cmd_line()
47              
48             The command line string, which defines the scan's behaviour - required upon
49             initialization.
50              
51             =head2 $scan->id()
52              
53             The scan ID - a string.
54              
55             =head2 $scan->used()
56              
57             A boolean - whether the scan was used.
58              
59             =head1 METHODS
60              
61             =head2 $self->mark_as_used()
62              
63             Mark the scan as used.
64              
65             =head2 $self->is_used()
66              
67             Returns whether the scan was used.
68              
69             =head2 $scan->data_file_path()
70              
71             Returns the path to the data file of the scan, where the numbers of iterations
72             per board are stored.
73              
74             =for :stopwords cpan testmatrix url bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan
75              
76             =head1 SUPPORT
77              
78             =head2 Websites
79              
80             The following websites have more information about this module, and may be of help to you. As always,
81             in addition to those websites please use your favorite search engine to discover more resources.
82              
83             =over 4
84              
85             =item *
86              
87             MetaCPAN
88              
89             A modern, open-source CPAN search engine, useful to view POD in HTML format.
90              
91             L<https://metacpan.org/release/AI-Pathfinding-OptimizeMultiple>
92              
93             =item *
94              
95             RT: CPAN's Bug Tracker
96              
97             The RT ( Request Tracker ) website is the default bug/issue tracking system for CPAN.
98              
99             L<https://rt.cpan.org/Public/Dist/Display.html?Name=AI-Pathfinding-OptimizeMultiple>
100              
101             =item *
102              
103             CPANTS
104              
105             The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution.
106              
107             L<http://cpants.cpanauthors.org/dist/AI-Pathfinding-OptimizeMultiple>
108              
109             =item *
110              
111             CPAN Testers
112              
113             The CPAN Testers is a network of smoke testers who run automated tests on uploaded CPAN distributions.
114              
115             L<http://www.cpantesters.org/distro/A/AI-Pathfinding-OptimizeMultiple>
116              
117             =item *
118              
119             CPAN Testers Matrix
120              
121             The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms.
122              
123             L<http://matrix.cpantesters.org/?dist=AI-Pathfinding-OptimizeMultiple>
124              
125             =item *
126              
127             CPAN Testers Dependencies
128              
129             The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution.
130              
131             L<http://deps.cpantesters.org/?module=AI::Pathfinding::OptimizeMultiple>
132              
133             =back
134              
135             =head2 Bugs / Feature Requests
136              
137             Please report any bugs or feature requests by email to C<bug-ai-pathfinding-optimizemultiple at rt.cpan.org>, or through
138             the web interface at L<https://rt.cpan.org/Public/Bug/Report.html?Queue=AI-Pathfinding-OptimizeMultiple>. You will be automatically notified of any
139             progress on the request by the system.
140              
141             =head2 Source Code
142              
143             The code is open to the world, and available for you to hack on. Please feel free to browse it and play
144             with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull
145             from your repository :)
146              
147             L<http://github.com/shlomif/fc-solve>
148              
149             git clone ssh://git@github.com/shlomif/fc-solve.git
150              
151             =head1 AUTHOR
152              
153             Shlomi Fish <shlomif@cpan.org>
154              
155             =head1 BUGS
156              
157             Please report any bugs or feature requests on the bugtracker website
158             L<https://github.com/shlomif/fc-solve/issues>
159              
160             When submitting a bug or request, please include a test-file or a
161             patch to an existing test-file that illustrates the bug or desired
162             feature.
163              
164             =head1 COPYRIGHT AND LICENSE
165              
166             This software is Copyright (c) 2012 by Shlomi Fish.
167              
168             This is free software, licensed under:
169              
170             The MIT (X11) License
171              
172             =cut