App/Chart/Suffix/BI.pm untested

filter: Statementstmt 0.0% 0 / 33 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 9 Podpod n/a totaltotal 0.0% 0 / 42 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 # Bilbao Stock Exchange setups.
2  
3 # Copyright 2005, 2006, 2007, 2008, 2009, 2010 Kevin Ryde
4  
5 # This file is part of Chart.
6 #
7 # Chart is free software; you can redistribute it and/or modify it under the
8 # terms of the GNU General Public License as published by the Free Software
9 # Foundation; either version 3, or (at your option) any later version.
10 #
11 # Chart is distributed in the hope that it will be useful, but WITHOUT ANY
12 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 # details.
15 #
16 # You should have received a copy of the GNU General Public License along
17 # with Chart. If not, see <http://www.gnu.org/licenses/>.
18  
19 package App::Chart::Suffix::BI;
20 use strict;
21 use warnings;
22 use Locale::TextDomain 'App-Chart';
23  
24 use App::Chart::Glib::Ex::MoreUtils;
25 use App::Chart;
26 use App::Chart::Sympred;
27 use App::Chart::TZ;
28 use App::Chart::Weblink;
29 use App::Chart::Yahoo;
30  
31  
32 my $timezone_bilbao = App::Chart::TZ->new
33 (name => __('Bilbao'),
34 # no separate Bilbao in Olson database
35 choose => [ 'Europe/Bilbao', 'Europe/Madrid' ],
36 fallback => 'CET-1');
37  
38 my $pred = App::Chart::Sympred::Suffix->new ('.BI');
39 $timezone_bilbao->setup_for_symbol ($pred);
40  
41  
42 #------------------------------------------------------------------------------
43 # weblink - only the home page for now ...
44 # haven't found any actual .BI on yahoo except 20.BI index
45  
46 App::Chart::Weblink->new
47 (pred => $pred,
48 name => __('_Bilbao Stock Exchange Home Page'),
49 desc => __('Open web browser at the Bilbao Stock Exchange home page'),
50 url => App::Chart::Glib::Ex::MoreUtils::lang_select
51 (en => 'http://www.bolsabilbao.es',
52 eu => 'http://www.bolsabilbao.es/bolsa/eu/html/home-eu.html',
53 es => 'http://www.bolsabilbao.es/bolsa/es/html/home-es.html',
54 fr => 'http://www.bolsabilbao.es/bolsa/fr/html/home-fr.html'));
55  
56  
57 1;
58 __END__