Skip to content

Commit

Permalink
change to old package syntax <= 5.12
Browse files Browse the repository at this point in the history
  • Loading branch information
wollmers committed Dec 12, 2015
1 parent 8f55a83 commit c889587
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 12 deletions.
4 changes: 2 additions & 2 deletions t/lib/GD/Image.pm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package # hide from PAUSE
GD::Image {
GD::Image;

sub new {
my $class = shift;
Expand All @@ -18,4 +18,4 @@ package # hide from PAUSE
sub getPixel { 1;}

1;
}

4 changes: 2 additions & 2 deletions t/lib/Image/Imlib2.pm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package # hide from PAUSE
Image::Imlib2 {
Image::Imlib2;

sub new {
my $class = shift;
Expand All @@ -13,4 +13,4 @@ package # hide from PAUSE
}

1;
}

4 changes: 2 additions & 2 deletions t/lib/Imager.pm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package # hide from PAUSE
Imager {
Imager;

sub new {
my $class = shift;
Expand All @@ -21,4 +21,4 @@ package # hide from PAUSE
}

1;
}

7 changes: 3 additions & 4 deletions t/lib/MyAny.pm
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package # hide from PAUSE
MyAny {
package # hide from PAUSE
MyAny;

sub new {
my $class = shift;
# uncoverable condition false
bless {}, $class;
}

1;
}

12 changes: 10 additions & 2 deletions t/optional_croak.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,23 @@

use lib qw(./lib/ ./t/lib/);

BEGIN {
eval "use Test::Exception";
if ( $@ ) {
require Test::More;
Test::More::plan(skip_all => 'Test::Exception required for testing croak');
}
}

use Test::More;
use Image::Seek;
#use Test::Exception;

use MyAny;

eval "use Test::Exception";
eval "use MyAny";
if ( $@ ) {
plan skip_all => 'Test::Exception required for testing croak';
plan skip_all => 'MyAny required for testing croak';
}
else {
$img = MyAny->new();
Expand Down

0 comments on commit c889587

Please sign in to comment.