Grid/Excel/XLSX.pm

filter: Statementstmt 85.7% 12 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 89.4% 17 / 19 CC 1 SCAR 0.6
CC
1
Cov
86%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« Grid/Container.pm ↑ Summary
1 package Data::Grid::Excel::XLSX;
2  
3 1 ▶use 5.014;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 0 ▶use Spreadsheet::ParseXLSX;
Subroutine BEGIN: called CC=1 SCAR=2.6
10  
11 extends 'Data::Grid::Excel';
12  
13 =head1 NAME
14  
15 Data::Grid::Excel::XLSX - OOXML standard Excel driver for Data::Grid
16  
17 =head1 VERSION
18  
19 Version 0.06
20  
21 =cut
22  
23 our $VERSION = '0.06';
24  
25 sub _init {
26 my ($self, $options) = @_;
27  
28 my $driver = Spreadsheet::ParseXLSX->new(%$options);
29 $driver->parse($self->fh) or Carp::croak($driver->error);
30 }
31  
32  
33 =head1 AUTHOR
34  
35 Dorian Taylor, C<< <dorian at cpan.org> >>
36  
37 =head1 SEE ALSO
38  
39 =over 4
40  
41 =item
42  
43 L<Data::Grid>
44  
45 =item
46  
47 L<Data::Grid::Excel>
48  
49 =item
50  
51 L<Spreadsheet::XLSX>
52  
53 =back
54  
55 =head1 COPYRIGHT & LICENSE
56  
57 Copyright 2010-2018 Dorian Taylor.
58  
59 Licensed under the Apache License, Version 2.0 (the "License"); you
60 may not use this file except in compliance with the License. You may
61 obtain a copy of the License at
62 L<http://www.apache.org/licenses/LICENSE-2.0>.
63  
64 Unless required by applicable law or agreed to in writing, software
65 distributed under the License is distributed on an "AS IS" BASIS,
66 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
67 implied. See the License for the specific language governing
68 permissions and limitations under the License.
69  
70 =cut
71  
72 1; # End of Data::Grid::Excel
« Grid/Container.pm ↑ Summary