File Coverage

blib/lib/Spreadsheet/WriteExcelXML.pm
Criterion Covered Total %
statement 16 16 100.0
branch 1 2 50.0
condition n/a
subroutine 5 5 100.0
pod 1 1 100.0
total 23 24 95.8


line stmt bran cond sub pod time code
1             package Spreadsheet::WriteExcelXML;
2              
3             ###############################################################################
4             #
5             # WriteExcelXML.
6             #
7             # Spreadsheet::WriteExcelXML - Create an Excel file in XML format.
8             #
9             # Copyright 2000-2010, John McNamara, jmcnamara@cpan.org
10             #
11             # Documentation after __END__
12             #
13              
14 22     22   45010 use Exporter;
  22         40  
  22         1101  
15              
16 22     22   116 use strict;
  22         44  
  22         654  
17 22     22   18410 use Spreadsheet::WriteExcelXML::Workbook;
  22         76  
  22         1235  
18              
19              
20              
21 22     22   171 use vars qw($VERSION @ISA);
  22         44  
  22         3057  
22             @ISA = qw(Spreadsheet::WriteExcelXML::Workbook Exporter);
23              
24             $VERSION = '0.14'; # A Bookshop Idyll.
25              
26              
27              
28             ###############################################################################
29             #
30             # new()
31             #
32             sub new {
33              
34 22     22 1 823 my $class = shift;
35 22         269 my $self = Spreadsheet::WriteExcelXML::Workbook->new(@_);
36              
37             # Check for file creation failures before re-blessing
38 22 50       142 bless $self, $class if defined $self;
39              
40 22         78 return $self;
41             }
42              
43              
44             1;
45              
46              
47             __END__