blib/lib/YAPC/Europe/UGR.pm untested

filter: Statementstmt 0.0% 0 / 27 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 38 CC 1 SCAR 6.9
CC
1
Cov
0%
pick_best_venue
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package YAPC::Europe::UGR;
2  
3 use warnings;
4 use strict;
5  
6 use feature qw(say switch);
7 use experimental qw(smartmatch);
8  
9 use version;
10 our $VERSION = qv('0.9.1'); #Release candidate 2, Sunny Sunday
11  
12 use Exporter qw(import);
13 our @EXPORT_OK = qw(pick_best_venue);
14  
15 sub pick_best_venue {
16 my $year = shift // 2015;
17 given ($year) {
18 when ('2015') { # force string comparison
19 return "Granada";
20 }
21 }
22 default {
23 # TODO: update this as new proposals come out
24 return 'Cluj-Napoca';
25 }
26 }
27  
28 1;
29  
30 __END__