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

filter: Statementstmt 0.0% 0 / 28 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 38 CC 1 SCAR 6.9
CC
1
Cov
0%
run
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 # -*- coding: utf-8 -*-
2 # Copyright (C) 2012, 2014 Rocky Bernstein <rocky@cpan.org>
3 use warnings; no warnings 'redefine'; no warnings 'once';
4 use rlib '../../../../..';
5 use Devel::Trepan::CmdProcessor::Command::Subcmd::Core;
6  
7 package Devel::Trepan::CmdProcessor::Command::Show::Args;
8  
9  
10 @ISA = qw(Devel::Trepan::CmdProcessor::Command::Subcmd);
11 # Values inherited from parent
12 use vars @Devel::Trepan::CmdProcessor::Command::Subcmd::SUBCMD_VARS;
13  
14 =pod
15  
16 =head2 Synopsis:
17  
18 =cut
19 our $HELP = <<"EOH";
20 =pod
21  
22 B<show args>
23  
24 Show Arguments to restart program.
25  
26 =head2 See also:
27  
28 L<C<set args>|Devel::Trepan::CmdProcessor::Command::Set::Args> and
29 L<C<run>|Devel::Trepan::CmdProcessor::Run>.
30  
31 =cut
32 EOH
33 our $SHORT_HELP = "Arguments to restart program";
34 our $MIN_ABBREV = length('ar');
35  
36 sub run($$)
37 {
38 my ($self, $args) = @_;
39 my $proc = $self->{proc};
40 my @script = $proc->restart_args();
41 $proc->msg("Argument list to give program being debugged when it is started is:");
42 $proc->msg(join(' ', @script));
43 }
44  
45 unless (caller) {
46 # Demo it.
47 # require_relative '../../mock'
48  
49 # # FIXME: DRY the below code
50 # my ($dbgr, $cmd) = MockDebugger::setup('show');
51 # $subcommand = __PACKAGE__->new($cmd);
52 # $testcmdMgr = Trepan::Subcmd->new($subcommand);
53  
54 # $subcommand->run_show_bool();
55 # $subcommand->summary_help($NAME);
56 }
57  
58 1;