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   658 use strict;
  6         5  
  6         122  
4 6     6   16 use warnings;
  6         6  
  6         123  
5 6     6   16 no warnings 'uninitialized'; ## no critic
  6         6  
  6         145  
6              
7 6     6   18 use base 'RPC::ExtDirect::Event';
  6         15  
  6         610  
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 437 my ($class) = @_;
21              
22 6         29 return $class->SUPER::new('__NONE__', '');
23             }
24              
25             1;