blib/lib/ClearCase/Wrapper/DSB.pm

filter: Statementstmt 100% 39 / 39 Branchbran 50.0% 1 / 2 Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 93.6% 44 / 47 CC 1 SCAR 0.0
CC
1
Cov
95%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
1 package ClearCase::Wrapper::DSB;
2  
3 1 $VERSION = '1.14';
4  
5 1 ▶use AutoLoader 'AUTOLOAD';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 #############################################################################
10 # Usage Message Extensions
11 #############################################################################
12 {
13 1 local $^W = 0;
14 1 ▶ no strict 'vars';
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 # Usage message additions for actual cleartool commands that we extend.
17 1 $catcs = "\n* [-cmnt|-expand|-sources|-start]";
18 1 $describe = "\n* [--par/ents <n>]";
19 1 $lock = "\n* [-allow|-deny login-name[,...]] [-iflocked]";
20 1 $lsregion = "\n* [-current]";
21 1 $mklabel = "\n* [-up]";
22 1 $setcs = "\n* [-clone view-tag] [-expand] [-sync|-needed]";
23 1 $setview = "\n* [-me] [-drive drive:] [-persistent]";
24 1 $update = "\n* [-quiet]";
25 1 $winkin = "\n* [-vp] [-tag view-tag]";
26  
27 # Usage messages for pseudo cleartool commands that we implement here.
28 # Note: we used to localize $0 but that turns out to trigger a bug
29 # in perl 5.6.1.
30 1 ▶ my $z = (($ARGV[0] eq 'help') ? $ARGV[1] : $ARGV[0]) || '';
Branch: 1 branch
BranchTrueFalseTotal
$ARGV[0] eq 'help' ? : 0 1 1
Condition50%1/2
($ARGV[0] eq 'help' ? $ARGV[1] : $ARGV[0]) || ''
l!l
01
MC/DC0%0/1
($ARGV[0] eq 'help' ? $ARGV[1] : $ARGV[0]) || ''
($ARGV[0] eq 'help' ? $ARGV[1] : $ARGV[0])
Truth table50%1/2
A
A= ($ARGV[0] eq 'help' ? $ARGV[1] : $ARGV[0])
Aresult
11
00
31 1 $comment = "$z [-new] [-element] object-selector ...";
32 1 $diffcs = "$z view-tag-1 [view-tag-2]";
33 1 $eclipse = "$z element ...";
34 1 $edattr = "$z [-view [-tag view-tag]] | [-element] object-selector ...";
35 1 $grep = "$z [grep-flags] pattern element";
36 1 $protectview = "$z [-force] [-replace]"
37 . "\n[-chown login-name] [-chgrp group-name] [-chmod permissions]"
38 . "\n[-add_group group-name[,...]]"
39 . "\n[-delete_group group-name[,...]]"
40 . "\n{-tag view-tag | view-storage-dir-pname ...}";
41 1 $recheckout = "$z [-keep|-rm] pname ...";
42 1 $winkout = "$z [-dir|-rec|-all] [-f file] [-pro/mote] [-do]"
43 . "\n[-meta file [-print] file ...";
44 1 $workon = "$z [-me] [-login] [-exec command-invocation] view-tag";
45 }
46  
47 #############################################################################
48 # Command Aliases
49 #############################################################################
50 1 *des = *describe;
51 1 *desc = *describe;
52 1 *edcmnt = *comment;
53 1 *egrep = *grep;
54 1 *mkbrtype = *mklbtype; # not synonyms but the code's the same
55 1 *reco = *recheckout;
56 1 *work = *workon;
57  
58 1 1;
59  
60 __END__
↑ Summary