dbMan/Extension/GUI.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 3 Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 36 CC 2 SCAR 12.0
CC
2
Cov
0%
handle_action
6.0
IDENTIFICATION
2.0
preference
2.0
CRAP 3.3
1 package DBIx::dbMan::Extension::GUI;
2  
3 use strict;
4 use base 'DBIx::dbMan::Extension';
5  
6 our $VERSION = '0.01';
7  
8 1;
9  
10 sub IDENTIFICATION { return "000001-000093-000001"; }
11  
12 sub preference { return 5000; }
13  
14 sub handle_action {
15 my ($obj,%action) = @_;
16  
17 if ($action{action} eq 'COMMAND' and not $action{gui_tested}
18 and $obj->{-mempool}->get('gui')) {
19 ++$action{gui};
20 delete $action{processed};
21 } else {
22 $action{processed} = 1;
23 }
24  
25 ++$action{gui_tested};
26  
27 return %action;
28 }