Heap/Elem/NumRev.pm

filter: Statementstmt 94.1% 16 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 50.0% 1 / 2 totaltotal 87.5% 21 / 24 CC 1 SCAR 1.8
CC
1
Cov
94%
NumRElem
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Heap/Elem/RefRev.pm ↑ Summary Heap.pm »
1 package Heap::Elem::NumRev;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use Heap::Elem;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 require Exporter;
8  
9 2 @ISA = qw(Exporter Heap::Elem);
10  
11 # No names exported.
12 2 @EXPORT = ( );
13  
14 # Available for export: NumRElem (to allocate a new Heap::Elem::NumRev value)
15 2 @EXPORT_OK = qw( NumRElem );
16  
17 2 $VERSION = '0.80';
18  
19 0 ▶sub NumRElem { # exportable synonym for new
Subroutine NumRElem: not called CC=1 SCAR=6.9
Pod undocumented
20 0 Heap::Elem::NumRev->new(@_);
21 }
22  
23 # compare two NumR elems (reverse order)
24 65200 ▶sub cmp {
Subroutine cmp: called CC=1 SCAR=0.0
Pod documented
25 65200 return $_[1][0] <=> $_[0][0];
26 }
27  
28 2 1;
29 __END__
« Heap/Elem/RefRev.pm ↑ Summary Heap.pm »