File Coverage

lib/Devel/Trepan/CmdProcessor/Command/Show_Subcmd/Auto_Subcmd/List.pm
Criterion Covered Total %
statement 24 24 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod n/a
total 32 32 100.0


line stmt bran cond sub pod time code
1             # -*- coding: utf-8 -*-
2             # Copyright (C) 2011, 2014 Rocky Bernstein <rocky@cpan.org>
3 12     12   94 use warnings; no warnings 'redefine'; no warnings 'once';
  12     12   36  
  12     12   623  
  12         81  
  12         36  
  12         429  
  12         72  
  12         32  
  12         341  
4 12     12   75 use rlib '../../../../../..';
  12         32  
  12         95  
5              
6             package Devel::Trepan::CmdProcessor::Command::Show::Auto::List;
7 12     12   4995 use Devel::Trepan::CmdProcessor::Command::Subcmd::Subsubcmd;
  12         34  
  12         257  
8              
9 12     12   63 use strict;
  12         34  
  12         279  
10 12     12   61 use vars qw(@ISA @SUBCMD_VARS);
  12         33  
  12         741  
11             @ISA = qw(Devel::Trepan::CmdProcessor::Command::ShowBoolSubsubcmd);
12             # Values inherited from parent
13              
14 12     12   80 use vars @Devel::Trepan::CmdProcessor::Command::Subsubcmd::SUBCMD_VARS;
  12         35  
  12         1967  
15              
16             our $IN_LIST = 1;
17             our $MIN_ABBREV = length('li');
18             our $SHORT_HELP = "Show whether to run a 'list' command when we enter the debugger";
19              
20             =pod
21              
22             =head2 Synopsis:
23              
24             =cut
25             our $HELP = <<"HELP";
26             =pod
27              
28             B<show auto list>
29              
30             Show whether listing on debugger stop is in effect.
31              
32             =head2 See also:
33              
34             L<C<set auto list>|Devel::Trepan::CmdProcessor::Command::Set::Auto List>
35             =cut
36             HELP
37              
38              
39             unless (caller) {
40             # Demo it.
41             # require_relative '../../../mock'
42              
43             # dbgr, set_cmd = MockDebugger::setup('set')
44             # $max_cmd = __PACKAGE__->new(dbgr.core.processor, $set_cmd)
45             # $cmd_ary = Trepan::SubSubcommand::SetMaxList::PREFIX
46             # $cmd_name = cmd_ary.join(' ')
47             # $subcmd = __PACKAGE__->new($set_cmd->{proc}, $max_cmd, $cmd_name);
48             # $prefix_run = cmd_ary[1..-1]
49             # $subcmd->run(\@prefix_run);
50             # $subcmd-.run(\@prefix_run, qw(0));
51             # $subcmd->run(prefix_run, qw(20));
52             # $subcmd->summary_help(name);
53             # print "\n";
54             # print '-' x 20, "\n";
55             # print $subcmd->save_command;
56             }
57              
58             1;