lib/App/Tel/Macro.pm

filter: Statementstmt 62.5% 10 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod 100% 2 / 2 totaltotal 63.6% 14 / 22 CC 1 SCAR 4.1
CC
1
Cov
62%
handle_backspace
2.0
handle_ctrl_z
2.0
BEGIN
1.0
CRAP 1.5
« blib/lib/App/Tel/Passwd/Mock.pm ↑ Summary lib/App/Tel/Color/CiscoLog.pm »
1 package App::Tel::Macro;
2  
3 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 7 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 7 require Exporter;
7 7 our @ISA = qw(Exporter);
8 7 our @EXPORT = qw( handle_backspace handle_ctrl_z );
9  
10 =head2 handle_backspace
11  
12 Handle backspace for routers that use ^H
13  
14 =cut
15  
16 0 ▶sub handle_backspace {
Subroutine handle_backspace: not called CC=1 SCAR=6.9
Pod documented
17 0 ${$_[0]}->send("\b");
18 0 return 1;
19 }
20  
21 =head2 handle_ctrl_z
22  
23 Handle ctrl_z for non-cisco boxes
24  
25 =cut
26  
27 0 ▶sub handle_ctrl_z {
Subroutine handle_ctrl_z: not called CC=1 SCAR=6.9
Pod documented
28 0 ${$_[0]}->send("exit\r");
29 0 return 1;
30 }
31  
32 7 1;
« blib/lib/App/Tel/Passwd/Mock.pm ↑ Summary lib/App/Tel/Color/CiscoLog.pm »