Xbm.pm

filter: Statementstmt 100% 20 / 20 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 90.0% 27 / 30 CC 3 SCAR 6.4
CC
3
Cov
92%
new
3.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.9
« Xpm.pm ↑ Summary
1 # -*- perl -*-
2  
3 # Copyright (C) 2015 Slaven Rezic. All rights reserved.
4 # This package is free software; you can redistribute it and/or
5 # modify it under the same terms as Perl itself.
6  
7 package Imager::Image::Xbm;
8  
9 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use vars qw($VERSION);
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 $VERSION = '0.01';
12  
13 1 ▶use base 'Imager::Image::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 1 ▶use Image::Xbm;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 1 ▶sub new {
Subroutine new: called CC=3 SCAR=11.2
Pod undocumented
18 1 my($class, %opts) = @_;
19 1 my $file = delete $opts{file};
20 1 ▶ die 'file option is mandatory' if !defined $file;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $file 0 1 1
21 1 ▶ die 'Unhandled options: ' . join(' ', %opts) if %opts;
Branch: 1 branch
BranchTrueFalseTotal
if %opts 0 1 1
22 1 my $xbm = Image::Xbm->new(-file => $file);
23 1 $class->convert($xbm);
24 }
25  
26 1 1;
27  
28 __END__
« Xpm.pm ↑ Summary