File Coverage

lib/Games/Sudoku/Component/TkPlayer.pm
Criterion Covered Total %
statement 7 9 77.7
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 10 12 83.3


line stmt bran cond sub pod time code
1             package Games::Sudoku::Component::TkPlayer;
2            
3 1     1   1199 use strict;
  1         3  
  1         34  
4 1     1   4 use warnings;
  1         2  
  1         42  
5            
6             our $VERSION = '0.02';
7            
8 1     1   472 use Tk;
  0            
  0            
9             use Games::Sudoku::Component::TkPlayer::View;
10             use Games::Sudoku::Component::TkPlayer::Controller;
11             use Games::Sudoku::Component::Controller;
12            
13             sub bootstrap {
14             my $self = shift;
15            
16             my $view = Games::Sudoku::Component::TkPlayer::View->new(
17             mw => MainWindow->new,
18             sdk => Games::Sudoku::Component::Controller->new,
19             cmd => Games::Sudoku::Component::TkPlayer::Controller->new,
20             ver => $VERSION,
21             );
22            
23             $view->create;
24            
25             MainLoop;
26            
27             print "Thank you for playing!\n";
28             }
29            
30             1;
31            
32             __END__