File Coverage

blib/lib/Graph/Easy/As_sparse6.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 0 1 0.0
total 18 19 94.7


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::Easy::As_sparse6;
19 1     1   117576 use 5.006; # Graph::Easy is 5.008 anyway
  1         4  
20 1     1   6 use strict;
  1         2  
  1         23  
21 1     1   5 use warnings;
  1         2  
  1         27  
22 1     1   491 use Graph::Easy::As_graph6;
  1         3  
  1         82  
23              
24             our $VERSION = 8;
25              
26             # uncomment this to run the ### lines
27             # use Smart::Comments;
28              
29              
30             package Graph::Easy;
31             sub as_sparse6 {
32 9     9 0 4602 my $graph = shift;
33 9         28 return $graph->as_graph6 (format => 'sparse6', @_);
34             }
35              
36             1;
37             __END__