blib/lib/Devel/Trepan/CmdProcessor/Command/Show_Subcmd/Max.pm untested

filter: Statementstmt 0.0% 0 / 35 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 10 Podpod n/a totaltotal 0.0% 0 / 47 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-2012, 2014 Rocky Bernstein <rocky@cpan.org>
3 use warnings; no warnings 'redefine'; no warnings 'once';
4 use rlib '../../../../..';
5 use strict;
6 use vars qw(@ISA @SUBCMD_VARS);
7  
8 package Devel::Trepan::CmdProcessor::Command::Show::Max;
9  
10 use Devel::Trepan::CmdProcessor::Command::Subcmd::Core;
11 use Devel::Trepan::CmdProcessor::Command::Subcmd::SubsubMgr;
12 use vars qw(@ISA @SUBCMD_VARS);
13 our $MIN_ABBREV = length('ma');
14 =pod
15  
16 =head2 Synopsis:
17  
18 =cut
19 our $HELP = <<"HELP";
20 =pod
21  
22 B<show max> [I<show max subcommands>]
23  
24 Show maximum length setting on things which may have unbounded size.
25  
26 =head2 See also:
27  
28 C<help show max *> for a list of subcommands or C<help show debug
29 I<name>> for help on a particular max subcommand.
30  
31 =head2 See also:
32  
33 L<C<set mac>|Devel::Trepan::CmdProcessor::Command::Set::Max>
34 =cut
35 HELP
36  
37 our $SHORT_HELP = 'Show "maximum length" settings';
38 @ISA = qw(Devel::Trepan::CmdProcessor::Command::SubsubcmdMgr);
39  
40  
41 # def run(args)
42 # puts "foo"
43 # require 'trepanning'
44 # Trepan.debug
45 # super
46 # end
47  
48 unless (caller) {
49 # Demo it.
50 require Devel::Trepan;
51 # require_relative '../../mock'
52 # dbgr, parent_cmd = MockDebugger::setup('set', false)
53 # cmd = Trepan::SubSubcommand::SetMax.new(dbgr.core.processor,
54 # parent_cmd)
55 # cmd.run(cmd.prefix + ['string', '30'])
56  
57 # %w(s lis foo).each do |prefix|
58 # p [prefix, cmd.complete(prefix)]
59 # end
60 }
61  
62 1;