Heap/Elem/Num.pm

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