ExtDirect/NoEvents.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 21 / 21 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« ExtDirect/Test/Pkg/Meta.pm ↑ Summary
1 package RPC::ExtDirect::NoEvents;
2  
3 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 6 ▶no warnings 'uninitialized'; ## no critic
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 6 ▶use base 'RPC::ExtDirect::Event';
Subroutine BEGIN: called CC=1 SCAR=0.0
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 ▶ my ($class) = @_;
Subroutine new: called CC=1 SCAR=0.0
Pod documented
21  
22 6 return $class->SUPER::new('__NONE__', '');
23 }
24  
25 6 1;
« ExtDirect/Test/Pkg/Meta.pm ↑ Summary