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   3017 use strict;
  8         10  
  8         175  
17 8     8   23 use warnings;
  8         8  
  8         166  
18 8     8   25 no warnings 'uninitialized';
  8         7  
  8         188  
19              
20 8     8   22 use base 'RPC::ExtDirect::Test::Pkg::Bar';
  8         8  
  8         1095  
21              
22 8     8   27 use RPC::ExtDirect Action => 'Qux';
  8         8  
  8         31  
23              
24             # Redefine subs into Qux package without actually changing them
25 8     8 0 26 sub foo_foo : ExtDirect( 1 ) { shift; __PACKAGE__->SUPER::foo_foo(@_); }
  8     6   8  
  8         31  
  6         8  
  6         36  
26 8     8 0 948 sub foo_bar : ExtDirect( 2 ) { shift; __PACKAGE__->SUPER::foo_bar(@_); }
  8     2   10  
  8         23  
  2         4  
  2         14  
27             sub foo_baz : ExtDirect( params => [ qw( foo bar baz ) ] )
28 8     8 0 941 { shift; __PACKAGE__->SUPER::foo_baz(@_); }
  8     3   10  
  8         26  
  3         3  
  3         14  
29 8     8 0 984 sub bar_foo : ExtDirect( 4 ) { shift; __PACKAGE__->SUPER::bar_foo(@_); }
  8     1   11  
  8         39  
  1         2  
  1         8  
30 8     8 0 911 sub bar_bar : ExtDirect( 5 ) { shift; __PACKAGE__->SUPER::bar_bar(@_); }
  8     1   9  
  8         23  
  1         2  
  1         9  
31             sub bar_baz : ExtDirect( formHandler ) {
32 0     0 0   shift;
33 0           __PACKAGE__->SUPER::bar_baz(@_);
34 8     8   937 }
  8         8  
  8         25  
35              
36             1;