blib/lib/Devel/Trepan/CmdProcessor/Command/Show_Subcmd/Auto_Subcmd/Deparse.pm untested

filter: Statementstmt 0.0% 0 / 30 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 8 Podpod n/a totaltotal 0.0% 0 / 40 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) 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::Auto::Deparse;
7 use Devel::Trepan::CmdProcessor::Command::Subcmd::Subsubcmd;
8  
9 use strict;
10 use vars qw(@ISA @SUBCMD_VARS);
11 @ISA = qw(Devel::Trepan::CmdProcessor::Command::ShowBoolSubsubcmd);
12 # Values inherited from parent
13  
14 use vars @Devel::Trepan::CmdProcessor::Command::Subsubcmd::SUBCMD_VARS;
15  
16 our $IN_DEPARSE = 1;
17 our $MIN_ABBREV = length('de');
18 our $SHORT_HELP = "Show whether to run a 'deparse' 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 deparse>
29  
30 Show whether deparseing on debugger stop is in effect.
31  
32 =head2 See also:
33  
34 L<C<set auto deparse>|Devel::Trepan::CmdProcessor::Command::Set::Auto Deparse>
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::SetMaxDeparse::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;