File Coverage

lib/Devel/Trepan/CmdProcessor/Command/Show_Subcmd/Max_Subcmd/Width.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   93 use warnings; no warnings 'redefine'; no warnings 'once';
  12     12   42  
  12     12   702  
  12         88  
  12         91  
  12         496  
  12         84  
  12         40  
  12         406  
4 12     12   89 use rlib '../../../../../..';
  12         34  
  12         83  
5              
6             package Devel::Trepan::CmdProcessor::Command::Show::Max::Width;
7              
8             # require_relative '../../base/subsubcmd'
9 12     12   5837 use Devel::Trepan::CmdProcessor::Command::Subcmd::Subsubcmd;
  12         36  
  12         315  
10              
11 12     12   72 use strict;
  12         33  
  12         310  
12 12     12   69 use vars qw(@ISA @SUBCMD_VARS);
  12         39  
  12         812  
13             @ISA = qw(Devel::Trepan::CmdProcessor::Command::ShowIntSubsubcmd);
14             # Values inherited from parent
15              
16 12     12   81 use vars @Devel::Trepan::CmdProcessor::Command::Subsubcmd::SUBCMD_VARS;
  12         41  
  12         2071  
17              
18             our $IN_LIST = 1;
19             our $MIN_ABBREV = length('wid');
20             =pod
21              
22             =head2 Synopsis:
23              
24             =cut
25              
26             our $HELP = <<"HELP";
27             =pod
28              
29             B<show max width>
30              
31             Show the number of characters the debugger thinks are in a line.
32              
33             =head2 See also:
34              
35             L<C<set max width>|Devel::Trepan::CmdProcessor::Set::Max::Width>
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             # Demo it.
44             # require_relative '../../../mock'
45             # name = File.basename(__FILE__, '.rb')
46              
47             # dbgr, show_cmd = MockDebugger::showup('show')
48             # max_cmd = Trepan::SubSubcommand::ShowMax.new(dbgr.core.processor,
49             # show_cmd)
50             # cmd_ary = Trepan::SubSubcommand::ShowMaxWidth::PREFIX
51             # cmd_name = cmd_ary.join(' ')
52             # subcmd = Trepan::SubSubcommand::ShowMaxWidth.new(show_cmd.proc,
53             # max_cmd,
54             # cmd_name)
55             # prefix_run = cmd_ary[1..-1]
56             # subcmd.run(prefix_run)
57             # subcmd.run(prefix_run + %w(0))
58             # subcmd.run(prefix_run + %w(20))
59             # name = File.basename(__FILE__, '.rb')
60             # subcmd.summary_help(name)
61             # puts
62             # puts '-' * 20
63             # puts subcmd.save_command
64             }
65              
66             1;