File Coverage

blib/lib/RPC/ExtDirect/NoEvents.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 1 1 100.0
total 20 20 100.0


line stmt bran cond sub pod time code
1             package RPC::ExtDirect::NoEvents;
2              
3 6     6   694 use strict;
  6         6  
  6         122  
4 6     6   17 use warnings;
  6         4  
  6         125  
5 6     6   18 no warnings 'uninitialized'; ## no critic
  6         5  
  6         121  
6              
7 6     6   17 use base 'RPC::ExtDirect::Event';
  6         6  
  6         593  
8              
9             ### PUBLIC CLASS METHOD (CONSTRUCTOR) ###
10             #
11             # Initialize a new instance of NoEvents. This is a stub event
12             # we have to return when there are no actual events returned
13             # by the poll handlers. Certain Ext JS versions had a bug that
14             # resulted in a JavaScript exception thrown when an empty array
15             # of events was returned; returning one stub event instead
16             # works around that problem.
17             #
18              
19             sub new {
20 6     6 1 562 my ($class) = @_;
21              
22 6         28 return $class->SUPER::new('__NONE__', '');
23             }
24              
25             1;