| 1 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | 1 | ▶ | use lib './lib'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use Test::More tests => 6; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | my $class= 'Image::Resize::Path'; | |
| 8 | |||
| 9 | 0 | ▶ | BEGIN{ use_ok('Image::Resize::Path'); } |
|
Subroutine
BEGIN: called CC=1 SCAR=2.0
Subroutine
BEGIN: called CC=1 SCAR=2.0
| |||
| 10 | |||
| 11 | 1 | my $test_obj = Image::Resize::Path->new; | |
| 12 | |||
| 13 | 1 | isa_ok($test_obj, $class); | |
| 14 | |||
| 15 | 1 | $test_obj->src_path('foo'); | |
| 16 | |||
| 17 | 0 | is($test_obj->src_path, 'foo'); | |
| 18 | |||
| 19 | 0 | my $images_hr = $test_obj->supported_images(['png']); | |
| 20 | |||
| 21 | 0 | is_deeply($images_hr, { png => 1 } ); | |
| 22 | |||
| 23 | 0 | $images_hr = $test_obj->supported_images('png'); | |
| 24 | |||
| 25 | 0 | is_deeply($images_hr, undef ); | |
| 26 | |||
| 27 | 0 | $test_obj->dest_path('foo'); | |
| 28 | |||
| 29 | 0 | is($test_obj->dest_path, 'foo'); | |