blib/lib/Imager/Filter/DynTest.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 26 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
_lin_stretch
2.0
BEGIN
2.0
CRAP 2.0
1 package Imager::Filter::DynTest;
2 use 5.006;
3 use strict;
4 use Imager;
5  
6 BEGIN {
7 our $VERSION = "0.04";
8
9 require XSLoader;
10 XSLoader::load('Imager::Filter::DynTest', $VERSION);
11 }
12  
13  
14 sub _lin_stretch {
15 my %hsh = @_;
16  
17 lin_stretch($hsh{image}, $hsh{a}, $hsh{b});
18 }
19  
20 Imager->register_filter(type=>'lin_stretch',
21 callsub => \&_lin_stretch,
22 defaults => { a => 0, b => 255 },
23 callseq => [ qw/image a b/ ]);
24  
25 1;