File Coverage

lib/ProjectBuilder/Version.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 16 17 94.1


line stmt bran cond sub pod time code
1             #!/usr/bin/perl -w
2             #
3             # Declare versions that will be used in pb
4             # Those are filtered with pb mecanism
5             # and have been isolated here to avoid unrelated effects
6             #
7             # Copyright B. Cornec 2007-2016
8             # Provided under the GPL v2
9             #
10             package ProjectBuilder::Version;
11              
12 3     3   10 use strict;
  3         3  
  3         79  
13              
14             # Inherit from the "Exporter" module which handles exporting functions.
15            
16 3     3   7 use vars qw($VERSION $REVISION @ISA @EXPORT);
  3         2  
  3         132  
17 3     3   9 use Exporter;
  3         3  
  3         253  
18            
19             # Export, by default, all the functions into the namespace of
20             # any code which uses this module.
21             our @ISA = qw(Exporter);
22             our @EXPORT = qw(pb_version_init);
23              
24             $VERSION = "0.14.1"."";
25             $REVISION = "2128";
26              
27             sub pb_version_init {
28              
29 5     5 0 5 my $projectbuilderver = $VERSION;
30 5         5 my $projectbuilderrev = $REVISION;
31              
32 5         11 return($projectbuilderver,$projectbuilderrev);
33             }
34             1;