File Coverage

blib/lib/RPC/ExtDirect/Test/Pkg/Qux.pm
Criterion Covered Total %
statement 43 45 95.5
branch n/a
condition n/a
subroutine 16 17 94.1
pod 0 6 0.0
total 59 68 86.7


line stmt bran cond sub pod time code
1             #
2             # WARNING WARNING WARNING
3             #
4             # DO NOT CHANGE ANYTHING IN THIS MODULE. OTHERWISE, A LOT OF API
5             # AND OTHER TESTS MAY BREAK.
6             #
7             # This module is here to test certain behaviors. If you need
8             # to test something else, add another test module.
9             # It's that simple.
10             #
11              
12             # This does not need to be indexed by PAUSE
13             package
14             RPC::ExtDirect::Test::Pkg::Qux;
15              
16 8     8   3155 use strict;
  8         11  
  8         194  
17 8     8   25 use warnings;
  8         10  
  8         174  
18 8     8   23 no warnings 'uninitialized';
  8         13  
  8         229  
19              
20 8     8   26 use base 'RPC::ExtDirect::Test::Pkg::Bar';
  8         7  
  8         1151  
21              
22 8     8   29 use RPC::ExtDirect Action => 'Qux';
  8         19  
  8         31  
23              
24             # Redefine subs into Qux package without actually changing them
25 8     8 0 31 sub foo_foo : ExtDirect( 1 ) { shift; __PACKAGE__->SUPER::foo_foo(@_); }
  8     6   10  
  8         29  
  6         9  
  6         36  
26 8     8 0 1082 sub foo_bar : ExtDirect( 2 ) { shift; __PACKAGE__->SUPER::foo_bar(@_); }
  8     2   11  
  8         27  
  2         3  
  2         14  
27             sub foo_baz : ExtDirect( params => [ qw( foo bar baz ) ] )
28 8     8 0 1066 { shift; __PACKAGE__->SUPER::foo_baz(@_); }
  8     3   10  
  8         24  
  3         5  
  3         16  
29 8     8 0 996 sub bar_foo : ExtDirect( 4 ) { shift; __PACKAGE__->SUPER::bar_foo(@_); }
  8     1   12  
  8         37  
  1         2  
  1         8  
30 8     8 0 975 sub bar_bar : ExtDirect( 5 ) { shift; __PACKAGE__->SUPER::bar_bar(@_); }
  8     1   9  
  8         25  
  1         2  
  1         10  
31             sub bar_baz : ExtDirect( formHandler ) {
32 0     0 0   shift;
33 0           __PACKAGE__->SUPER::bar_baz(@_);
34 8     8   1077 }
  8         11  
  8         28  
35              
36             1;