File Coverage

blib/lib/App/Chart/Gtk2/Symlist/All.pm
Criterion Covered Total %
statement 16 18 88.8
branch n/a
condition n/a
subroutine 6 6 100.0
pod n/a
total 22 24 91.6


line stmt bran cond sub pod time code
1             # Copyright 2007, 2008, 2009, 2011 Kevin Ryde
2              
3             # This file is part of Chart.
4             #
5             # Chart is free software; you can redistribute it and/or modify it under the
6             # terms of the GNU General Public License as published by the Free Software
7             # Foundation; either version 3, or (at your option) any later version.
8             #
9             # Chart is distributed in the hope that it will be useful, but WITHOUT ANY
10             # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11             # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
12             # details.
13             #
14             # You should have received a copy of the GNU General Public License along
15             # with Chart. If not, see <http://www.gnu.org/licenses/>.
16              
17             package App::Chart::Gtk2::Symlist::All;
18 1     1   479 use strict;
  1         4  
  1         30  
19 1     1   5 use warnings;
  1         1  
  1         25  
20 1     1   4 use Carp;
  1         2  
  1         49  
21 1     1   4 use Scalar::Util;
  1         2  
  1         28  
22 1     1   340 use Locale::TextDomain ('App-Chart');
  1         15131  
  1         6  
23              
24 1     1   6464 use App::Chart;
  0            
  0            
25              
26             use App::Chart::Gtk2::Symlist::Alphabetical;
27             use Glib::Object::Subclass
28             'App::Chart::Gtk2::Symlist::Alphabetical';
29              
30             sub name { return __('All') }
31              
32             sub instance {
33             my ($class) = @_;
34             return $class->new_from_key ('all');
35             }
36              
37             1;
38             __END__
39              
40             # sub symbol_list {
41             # my ($self) = @_;
42             # my $dbh = App::Chart::DBI->instance;
43             # my $sth = $dbh->prepare_cached
44             # ('SELECT symbol FROM info WHERE NOT historical ORDER BY symbol ASC');
45             # my $aref = $dbh->selectcol_arrayref ($sth);
46             # $sth->finish();
47             # return $aref;
48             # }
49