DynTest/t/t00dyntest.t

filter: Statementstmt 100% 25 / 25 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod n/a totaltotal 94.4% 34 / 36 CC 1 SCAR 0.0
CC
1
Cov
93%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« polygon.c ↑ Summary map.c »
1 #!perl -w
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use blib;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Imager;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Test::More tests => 4;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶BEGIN { use_ok('Imager::Filter::DynTest') }
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 my $im = Imager->new;
10 SKIP:
11 {
12 1 ▶ ok($im->read(file => '../testimg/penguin-base.ppm'), "load source image")
Branch: 1 branch
BranchTrueFalseTotal
&ok(scalar $im->read("file", "../testimg/penguin-base.ppm"), "load source image") or skip("couldn't load work image", 2) 1 0 1
13 or skip("couldn't load work image", 2);
14 1 ▶ ok($im->filter(type=>'lin_stretch', a => 50, b => 200),
Branch: 1 branch
BranchTrueFalseTotal
&ok(scalar $im->filter("type", "lin_stretch", "a", 50, "b", 200), "try filter") or print "# ", $im->errstr, "\n" 1 0 1
15 "try filter")
16 or print "# ", $im->errstr, "\n";
17 1 ok($im->write(file => '../testout/t00dyntest.ppm'),
18 "save result");
19 }
« polygon.c ↑ Summary map.c »