blib/lib/Graphics/Primitive/Paint/Gradient.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 22 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Graphics/Primitive/Paint.pm ↑ Summary blib/lib/Graphics/Primitive/Paint/Gradient/Linear.pm »
1 package Graphics::Primitive::Paint::Gradient;
2 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use MooseX::Storage;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 extends 'Graphics::Primitive::Paint';
7  
8 # FIXME key should be <= 1
9 has color_stops => (
10 traits => ['Hash'],
11 isa => 'HashRef',
12 is => 'rw',
13 2 ▶ default => sub { {} },
Subroutine __ANON__: called CC=1 SCAR=0.0
14 1 handles => {
15 stop_count => 'count',
16 stops => 'keys',
17 get_stop => 'get',
18 add_stop => 'set',
19 }
20 );
21  
22 1 __PACKAGE__->meta->make_immutable;
23  
24 1 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
25 1 1;
26 __END__
« blib/lib/Graphics/Primitive/Paint.pm ↑ Summary blib/lib/Graphics/Primitive/Paint/Gradient/Linear.pm »