Color.pm

filter: Statementstmt 95.2% 20 / 21 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 100% 2 / 2 totaltotal 87.5% 28 / 32 CC 4 SCAR 9.8
CC
4
Cov
88%
derive
4.1
equal_to
2.0
BEGIN
1.0
CRAP 2.7
« Color/YUV.pm ↑ Summary Color/Types.pm »
1 package Graphics::Color;
2 8 $Graphics::Color::VERSION = '0.31';
3 8 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 8 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 8 with qw(MooseX::Clone Graphics::Color::Equal MooseX::Storage::Deferred);
7  
8 # ABSTRACT: Device and library agnostic color spaces.
9  
10  
11 6 ▶sub derive {
Subroutine derive: called CC=4 SCAR=14.1
Pod documented
12 6 my ($self, $args) = @_;
13  
14 6 ▶ return unless ref($args) eq 'HASH';
Branch: 1 branch
BranchTrueFalseTotal
unless ref $args eq "HASH" 0 6 6
15 6 my $new = $self->clone;
16 6 foreach my $key (keys %{ $args }) {
17 6 ▶ $new->$key($args->{$key}) if($new->can($key));
Branch: 1 branch
BranchTrueFalseTotal
if $new->can($key) 6 0 6
18 }
19 6 return $new;
20 }
21  
22  
23 0 ▶sub equal_to {
Subroutine equal_to: not called CC=1 SCAR=6.9
Pod documented
24 0 die("Override me!");
25 }
26  
27 8 __PACKAGE__->meta->make_immutable;
28  
29 8 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
30 8 1;
31  
32 __END__
« Color/YUV.pm ↑ Summary Color/Types.pm »