File Coverage

lib/Devel/ebug/Wx/Command/Run.pm
Criterion Covered Total %
statement 9 16 56.2
branch n/a
condition n/a
subroutine 3 9 33.3
pod 0 2 0.0
total 12 27 44.4


line stmt bran cond sub pod time code
1             package Devel::ebug::Wx::Command::Run;
2              
3 1     1   2274 use strict;
  1         2  
  1         42  
4 1     1   6 use Devel::ebug::Wx::Plugin qw(:plugin);
  1         2  
  1         293  
5              
6             sub commands : Command {
7             return
8             ( run_menu => { tag => 'run',
9             label => 'Run',
10             priority => 200,
11             },
12 0     0     next => { sub => sub { $_[0]->ebug->next },
13             key => 'Alt-N',
14             menu => 'run',
15             label => 'Next',
16             priority => 20,
17             },
18 0     0     step => { sub => sub { $_[0]->ebug->step },
19             key => 'Alt-S',
20             menu => 'run',
21             label => 'Step',
22             priority => 20,
23             },
24 0     0     return => { sub => sub { $_[0]->ebug->return },
25             key => 'Alt-U',
26             menu => 'run',
27             label => 'Return',
28             priority => 20,
29             },
30 0     0     run => { sub => sub { $_[0]->ebug->run },
31 0     0 0   key => 'Alt-R',
32             menu => 'run',
33             label => 'Run',
34             priority => 10,
35             },
36             restart => { sub => \&restart,
37             menu => 'run',
38             label => 'Restart',
39             priority => 30,
40             },
41             );
42 1     1   7 }
  1         2  
  1         11  
43              
44             sub restart {
45 0     0 0   my( $wx ) = @_;
46              
47 0           $wx->ebug->reload_program;
48             }
49              
50             1;