lib/Games/Sudoku/Component/TkPlayer.pm

filter: Statementstmt 77.7% 7 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 83.3% 10 / 12 CC 1 SCAR 0.9
CC
1
Cov
78%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« blib/script/tksudoku.pl ↑ Summary lib/Games/Sudoku/Component/TkPlayer/Selector.pm »
1 package Games::Sudoku::Component::TkPlayer;
2
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5
6 our $VERSION = '0.02';
7
8 0 ▶use Tk;
Subroutine BEGIN: called CC=1 SCAR=2.6
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__
« blib/script/tksudoku.pl ↑ Summary lib/Games/Sudoku/Component/TkPlayer/Selector.pm »