blib/lib/Devel/Trepan/CmdProcessor/Command/Show_Subcmd/Max_Subcmd/Lines.pm untested

filter: Statementstmt 0.0% 0 / 41 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 9 Podpod n/a totaltotal 0.0% 0 / 52 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 # -*- coding: utf-8 -*-
2 # Copyright (C) 2011, 2014-2015 Rocky Bernstein <rocky@cpan.org>
3 use warnings; no warnings 'redefine'; no warnings 'once';
4 use rlib '../../../../../..';
5  
6 package Devel::Trepan::CmdProcessor::Command::Show::Max::Lines;
7  
8 use Devel::Trepan::CmdProcessor::Command::Subcmd::Subsubcmd;
9  
10 use strict;
11 use vars qw(@ISA @SUBCMD_VARS);
12 @ISA = qw(Devel::Trepan::CmdProcessor::Command::ShowIntSubsubcmd);
13 # Values inherited from parent
14  
15 use vars @Devel::Trepan::CmdProcessor::Command::Subsubcmd::SUBCMD_VARS;
16  
17 our $IN_LIST = 1;
18 our $MIN_ABBREV = length('lines');
19 =pod
20  
21 =head2 Synopsis:
22  
23 =cut
24  
25 our $HELP = <<"HELP";
26 =pod
27  
28 B<show max lines>
29  
30 Set maximum number of lines of trailing context around the source line.
31  
32  
33 =head2 See also:
34  
35 L<C<set max lines>|Devel::Trepan::CmdProcessor::Set::Max::Lines>
36  
37 =cut
38 HELP
39  
40 our $SHORT_HELP = 'Show the number of characters the debugger thinks are in a line';
41  
42 unless (caller) {
43 require Devel::Trepan::CmdProcessor;
44 my $cmdproc = Devel::Trepan::CmdProcessor->new();
45 my $subcmd = Devel::Trepan::CmdProcessor::Command::Show->new($cmdproc, 'set');
46 my $parent_cmd = Devel::Trepan::CmdProcessor::Command::Show::Max->new($subcmd, 'lines');
47 my $cmd = __PACKAGE__->new($parent_cmd, 'lines');
48 # Add common routine
49 foreach my $field (qw(min_abbrev name)) {
50 printf "Field %s is: %s\n", $field, $cmd->{$field};
51 }
52 my @args = qw(show max lines);
53 $cmd->run(\@args);
54 }
55  
56 1;