File Coverage

blib/lib/Graph/Writer/Sparse6.pm
Criterion Covered Total %
statement 16 16 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod n/a
total 22 22 100.0


line stmt bran cond sub pod time code
1             # Copyright 2015, 2016, 2017 Kevin Ryde
2             #
3             # This file is part of Graph-Graph6.
4             #
5             # Graph-Graph6 is free software; you can redistribute it and/or modify it under
6             # the terms of the GNU General Public License as published by the Free
7             # Software Foundation; either version 3, or (at your option) any later
8             # version.
9             #
10             # Graph-Graph6 is distributed in the hope that it will be useful, but WITHOUT
11             # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12             # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13             # more details.
14             #
15             # You should have received a copy of the GNU General Public License along
16             # with Graph-Graph6. If not, see .
17              
18             package Graph::Writer::Sparse6;
19 1     1   11380 use 5.006;
  1         4  
20 1     1   5 use strict;
  1         3  
  1         22  
21 1     1   5 use warnings;
  1         1  
  1         29  
22 1     1   515 use Graph::Writer::Graph6;
  1         3  
  1         36  
23              
24 1     1   7 use vars '@ISA','$VERSION';
  1         2  
  1         100  
25             @ISA = ('Graph::Writer::Graph6');
26             $VERSION = 8;
27              
28             # uncomment this to run the ### lines
29             # use Smart::Comments;
30              
31              
32             sub _init {
33 8     8   6315 my ($self,%param) = @_;
34             ### Graph-Writer-Sparse6 _init() ...
35             ### %param
36              
37 8         40 $self->SUPER::_init(format => 'sparse6', %param);
38              
39             ### self: %$self
40             }
41              
42             1;
43             __END__