File tree 7 files changed +34
-9
lines changed
7 files changed +34
-9
lines changed Original file line number Diff line number Diff line change 91
91
"lib" : " 0" ,
92
92
"local::lib" : " 0" ,
93
93
"perl" : " 5.010" ,
94
- "strictures" : " 0 "
94
+ "strictures" : " 2 "
95
95
}
96
96
},
97
97
"test" : {
102
102
"IPC::Open3" : " 0" ,
103
103
"Test::InDistDir" : " 0" ,
104
104
"Test::More" : " 0" ,
105
+ "Test::ReportPerlTidy" : " 0" ,
105
106
"blib" : " 1.01" ,
106
107
"perl" : " 5.010" ,
107
108
"strict" : " 0" ,
109
+ "strictures" : " 2" ,
108
110
"warnings" : " 0"
109
111
}
110
112
}
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ my %WriteMakefileArgs = (
71
71
" curry" => 0,
72
72
" lib" => 0,
73
73
" local::lib" => 0,
74
- " strictures" => 0
74
+ " strictures" => 2
75
75
},
76
76
" TEST_REQUIRES" => {
77
77
" File::Spec" => 0,
@@ -80,8 +80,10 @@ my %WriteMakefileArgs = (
80
80
" IPC::Open3" => 0,
81
81
" Test::InDistDir" => 0,
82
82
" Test::More" => 0,
83
+ " Test::ReportPerlTidy" => 0,
83
84
" blib" => " 1.01" ,
84
85
" strict" => 0,
86
+ " strictures" => 2,
85
87
" warnings" => 0
86
88
},
87
89
" VERSION" => " 0.000001" ,
@@ -135,14 +137,15 @@ my %FallbackPrereqs = (
135
137
" Sub::Name" => 0,
136
138
" Test::InDistDir" => 0,
137
139
" Test::More" => 0,
140
+ " Test::ReportPerlTidy" => 0,
138
141
" Time::HiRes" => 0,
139
142
" blib" => " 1.01" ,
140
143
" constant" => 0,
141
144
" curry" => 0,
142
145
" lib" => 0,
143
146
" local::lib" => 0,
144
147
" strict" => 0,
145
- " strictures" => 0 ,
148
+ " strictures" => 2 ,
146
149
" warnings" => 0
147
150
);
148
151
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ requires "curry" => "0";
41
41
requires " lib" => " 0" ;
42
42
requires " local::lib" => " 0" ;
43
43
requires " perl" => " 5.010" ;
44
- requires " strictures" => " 0 " ;
44
+ requires " strictures" => " 2 " ;
45
45
46
46
on ' test' => sub {
47
47
requires " File::Spec" => " 0" ;
@@ -50,9 +50,11 @@ on 'test' => sub {
50
50
requires " IPC::Open3" => " 0" ;
51
51
requires " Test::InDistDir" => " 0" ;
52
52
requires " Test::More" => " 0" ;
53
+ requires " Test::ReportPerlTidy" => " 0" ;
53
54
requires " blib" => " 1.01" ;
54
55
requires " perl" => " 5.010" ;
55
56
requires " strict" => " 0" ;
57
+ requires " strictures" => " 2" ;
56
58
requires " warnings" => " 0" ;
57
59
};
58
60
Original file line number Diff line number Diff line change @@ -20,15 +20,18 @@ sub import {
20
20
21
21
my %uniq_imports = map { $_ => 1 } @imports ;
22
22
23
- my %all_consts = map { $_ => 1 } map { @{ $Acme::MITHALDU::BleedingOpenGL::EXPORT_TAGS {$_ } } } grep { / const/ } keys %Acme::MITHALDU::BleedingOpenGL::EXPORT_TAGS ;
23
+ my %all_consts =
24
+ map { $_ => 1 }
25
+ map { @{ $Acme::MITHALDU::BleedingOpenGL::EXPORT_TAGS {$_ } } }
26
+ grep { / const/ } keys %Acme::MITHALDU::BleedingOpenGL::EXPORT_TAGS ;
24
27
25
28
my $glut_init_skips = " glut(MainLoop|Init(|DisplayMode|Context(Version|Profile|Flags)|Window(Size|Position)))" ;
26
29
27
30
my @non_debugs = grep { $all_consts {$_ } or /^($glut_init_skips |glutCreateWindow)$/ } keys %uniq_imports ;
28
31
my @functions = grep { !$all_consts {$_ } and !/^($glut_init_skips |glutCreateWindow)$/ } keys %uniq_imports ;
29
32
30
33
my @caller = caller ;
31
- install_sub( { code => \&{" Acme::MITHALDU::BleedingOpenGL::$_ " }, into => $caller [0], as => $_ } ) for @non_debugs ;
34
+ install_sub( { code => \&{" Acme::MITHALDU::BleedingOpenGL::$_ " }, into => $caller [0], as => $_ } ) for @non_debugs ;
32
35
install_sub( { code => make_wrapped( $_ ), into => $caller [0], as => $_ } ) for @functions ;
33
36
34
37
return ;
Original file line number Diff line number Diff line change @@ -49,10 +49,10 @@ sub on_recv_udp {
49
49
my ( $port , $ip_address ) = unpack_sockaddr_in $addr ;
50
50
my $ip_string = inet_ntoa $ip_address ;
51
51
my $from_address = " $ip_string :$port " ;
52
- my $frame = $self -> extract_frame( \$dgram );
52
+ my $frame = $self -> extract_frame( \$dgram );
53
53
if ( $frame -> isa( " PryoNet::FrameWorkMessage::RegisterUDP" ) ) {
54
54
my $from_connection_id = $frame -> connection_id;
55
- my $connection = delete $self -> pending_connections-> {$from_connection_id };
55
+ my $connection = delete $self -> pending_connections-> {$from_connection_id };
56
56
return if !$connection or $connection -> udp_remote_address;
57
57
58
58
$connection -> udp_remote_address_octets( $addr );
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ package basic_test;
5
5
use Test::InDistDir;
6
6
use Test::More;
7
7
8
- use Microidium::Client ;
8
+ use Microidium;
9
9
10
10
run();
11
11
done_testing;
Original file line number Diff line number Diff line change
1
+ use strictures 2;
2
+
3
+ use Test::InDistDir;
4
+ use Test::More;
5
+
6
+ use Test::ReportPerlTidy; # from https://github.com/wchristian/Test-ReportPerlTidy
7
+
8
+ run();
9
+ done_testing;
10
+ exit ;
11
+
12
+ sub run {
13
+ Test::ReportPerlTidy::run( sub { shift =~ / ^Makefile\. PL$| ^Microidium-\d / } );
14
+ return ;
15
+ }
You can’t perform that action at this time.
0 commit comments