Firemen.pm

filter: Statementstmt 66.6% 30 / 45 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 90.9% 10 / 11 Podpod 100% 1 / 1 totaltotal 71.9% 41 / 57 CC 2 SCAR 6.1
CC
2
Cov
67%
printVersion
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.8
« Firemen/Option/Check.pm ↑ Summary Firemen/Change/Type.pm »
1 #!/usr/bin/perl
2 ######################
3 #
4 # Copyright (C) 2011 - 2015 TU Clausthal, Institut fuer Maschinenwesen, Joachim Langenbach
5 #
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #
19 ######################
20  
21 # Pod::Weaver infos
22 # ABSTRACT: Scripts and Modules to manage PTC(R) ProE/Engineer(R) / Creo(TM) configurations. Use perldoc CAD::Firemen to get an introduction to the usage of this distribution.
23  
24 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
25 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
26  
27 package CAD::Firemen;
28 {
29 $CAD::Firemen::VERSION = '0.7.1';
30 }
31  
32 4 ▶use CAD::Firemen::Analyze;
Subroutine BEGIN: called CC=1 SCAR=0.0
33 4 ▶use CAD::Firemen::Change;
Subroutine BEGIN: called CC=1 SCAR=0.0
34 4 ▶use CAD::Firemen::Change::Type;
Subroutine BEGIN: called CC=1 SCAR=0.0
35 4 ▶use CAD::Firemen::Common qw(maxLength);
Subroutine BEGIN: called CC=1 SCAR=0.0
36 4 ▶use CAD::Firemen::Load;
Subroutine BEGIN: called CC=1 SCAR=0.0
37 4 ▶use CAD::Firemen::Option::Check;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 4 ▶use CAD::Firemen::ParseHelp::Wildfire5;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 4 ▶use CAD::Firemen::ParseHelp::Creo3;
Subroutine BEGIN: called CC=1 SCAR=0.0
40  
41 sub printVersion {
42 0 ▶ my %versions = ();
Subroutine printVersion: not called CC=2 SCAR=17.9
Pod documented
43 0 $versions{'CAD::Firemen'} = $CAD::Firemen::VERSION;
44 0 $versions{'CAD::Firemen::Analyze'} = $CAD::Firemen::Analyze::VERSION;
45 0 $versions{'CAD::Firemen::Change'} = $CAD::Firemen::Change::VERSION;
46 0 $versions{'CAD::Firemen::Change::Type'} = $CAD::Firemen::Change::Type::VERSION;
47 0 $versions{'CAD::Firemen::Common'} = $CAD::Firemen::Common::VERSION;
48 0 $versions{'CAD::Firemen::Load'} = $CAD::Firemen::Load::VERSION;
49 0 $versions{'CAD::Firemen::Option::Check'} = $CAD::Firemen::Option::Check::VERSION;
50 0 $versions{'CAD::Firemen::ParseHelp::Wildfire5'} = $CAD::Firemen::ParseHelp::Wildfire5::VERSION;
51 0 $versions{'CAD::Firemen::ParseHelp::Creo3'} = $CAD::Firemen::ParseHelp::Creo3::VERSION;
52  
53 0 print "The version of the bundled firefighters and modules are:\n";
54 0 my $max = maxLength(keys(%versions)) + 2;
55 0 foreach my $name (sort(keys(%versions))){
56 0 print sprintf("%-". $max ."s", $name) . $versions{$name} ."\n";
57 }
58 0 exit 0;
59 }
60  
61 1;
62  
63 __END__
« Firemen/Option/Check.pm ↑ Summary Firemen/Change/Type.pm »