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

filter: Statementstmt 0.0% 0 / 23 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod n/a totaltotal 0.0% 0 / 31 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, 2014 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::Confirm;
7  
8 use Devel::Trepan::CmdProcessor::Command::Subcmd::Core;
9  
10 @ISA = qw(Devel::Trepan::CmdProcessor::Command::ShowBoolSubcmd);
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  
20 our $HELP=<<"EOH";
21 =pod
22  
23 B<show confirm>
24  
25 Show whether to confirm potentially dangerous operations.
26  
27 =head2 See also:
28  
29 L<C<set confirm>|Devel::Trepan::CmdProcessor::Command::Set::Confirm>
30 =cut
31 EOH
32 our $SHORT_HELP = "Show whether to confirm potentially dangerous operations";
33 our $MIN_ABBREV = length('co');
34  
35 unless (caller) {
36 # Demo it.
37 # require_relative '../../mock'
38  
39 # # FIXME: DRY the below code
40 # dbgr, cmd = MockDebugger::setup('show')
41 # subcommand = __PACKAGE__->new(cmd)
42 # testcmdMgr = Trepan::Subcmd.new(subcommand)
43  
44 # subcommand.run_show_bool
45 # name = File.confirm(__FILE__, '.rb')
46 # subcommand.summary_help(name)
47 }
48  
49 1;