| 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 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | 8 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | 8 | ▶ | no warnings 'uninitialized'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | |||
| 20 | 8 | ▶ | use base 'RPC::ExtDirect::Test::Pkg::Bar'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | |||
| 22 | 8 | ▶ | use RPC::ExtDirect Action => 'Qux'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 23 | |||
| 24 | # Redefine subs into Qux package without actually changing them | ||
| 25 | 8 | ▶ | sub foo_foo : ExtDirect( 1 ) { shift; __PACKAGE__->SUPER::foo_foo(@_); } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
foo_foo: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 26 | 8 | ▶ | sub foo_bar : ExtDirect( 2 ) { shift; __PACKAGE__->SUPER::foo_bar(@_); } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
foo_bar: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 27 | sub foo_baz : ExtDirect( params => [ qw( foo bar baz ) ] ) | ||
| 28 | 8 | ▶ | { shift; __PACKAGE__->SUPER::foo_baz(@_); } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
foo_baz: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 29 | 8 | ▶ | sub bar_foo : ExtDirect( 4 ) { shift; __PACKAGE__->SUPER::bar_foo(@_); } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
bar_foo: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 30 | 8 | ▶ | sub bar_bar : ExtDirect( 5 ) { shift; __PACKAGE__->SUPER::bar_bar(@_); } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
bar_bar: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 31 | sub bar_baz : ExtDirect( formHandler ) { | ||
| 32 | 0 | ▶ | shift; |
|
Subroutine
bar_baz: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 33 | 0 | __PACKAGE__->SUPER::bar_baz(@_); | |
| 34 | 8 | ▶ | } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 35 | |||
| 36 | 8 | 1; | |