TermFinder/Native.pm

filter: Statementstmt 62.7% 27 / 43 Branchbran 62.5% 5 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 25.0% 3 / 12 Podpod 0.0% 0 / 1 totaltotal 54.6% 35 / 64 CC 5 SCAR 8.2
CC
5
Cov
63%
DESTROY
4.0
new
2.0
TIEHASH
2.0
CRAP 2.3
« AnnotatedGene.pm ↑ Summary AnnotationProvider.pm »
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 1.3.35
3 #
4 # Don't modify this file, modify the SWIG interface instead.
5  
6 package GO::TermFinder::Native;
7 2 require Exporter;
8 2 require DynaLoader;
9 2 @ISA = qw(Exporter DynaLoader);
10 package GO::TermFinder::Nativec;
11 2 bootstrap GO::TermFinder::Native;
12 package GO::TermFinder::Native;
13 2 @EXPORT = qw( );
14  
15 # ---------- BASE METHODS -------------
16  
17 package GO::TermFinder::Native;
18  
19 0 ▶sub TIEHASH {
Subroutine TIEHASH: not called CC=1 SCAR=6.9
20 0 my ($classname,$obj) = @_;
21 0 return bless $obj, $classname;
22 }
23  
24 0 ▶sub CLEAR { }
Subroutine CLEAR: not called CC=1 SCAR=0.0
25  
26 0 ▶sub FIRSTKEY { }
Subroutine FIRSTKEY: not called CC=1 SCAR=0.0
27  
28 0 ▶sub NEXTKEY { }
Subroutine NEXTKEY: not called CC=1 SCAR=0.0
29  
30 0 ▶sub FETCH {
Subroutine FETCH: not called CC=1 SCAR=6.9
31 0 my ($self,$field) = @_;
32 0 my $member_func = "swig_${field}_get";
33 0 $self->$member_func();
34 }
35  
36 0 ▶sub STORE {
Subroutine STORE: not called CC=1 SCAR=6.9
37 0 my ($self,$field,$newval) = @_;
38 0 my $member_func = "swig_${field}_set";
39 0 $self->$member_func($newval);
40 }
41  
42 0 ▶sub this {
Subroutine this: not called CC=1 SCAR=6.9
Pod undocumented
43 0 my $ptr = shift;
44 0 return tied(%$ptr);
45 }
46  
47  
48 # ------- FUNCTION WRAPPERS --------
49  
50 package GO::TermFinder::Native;
51  
52  
53 ############# Class : GO::TermFinder::Native::Distributions ##############
54  
55 package GO::TermFinder::Native::Distributions;
56 2 ▶use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
Subroutine BEGIN: called CC=1 SCAR=0.0
57 2 @ISA = qw( GO::TermFinder::Native );
58 2 %OWNER = ();
59 2 %ITERATORS = ();
60 5 ▶sub new {
Subroutine new: called CC=2 SCAR=7.1
61 5 my $pkg = shift;
62 5 my $self = GO::TermFinder::Nativec::new_Distributions(@_);
63 5 ▶ bless $self, $pkg if defined($self);
Branch: 1 branch
BranchTrueFalseTotal
if defined $self 5 0 5
64 }
65  
66 10 ▶sub DESTROY {
Subroutine DESTROY: called CC=4 SCAR=14.0
67 10 ▶ return unless $_[0]->isa('HASH');
Branch: 1 branch
BranchTrueFalseTotal
unless $_[0]->isa("HASH") 5 5 10
68 5 my $self = tied(%{$_[0]});
69 5 ▶ return unless defined $self;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $self 0 5 5
70 5 delete $ITERATORS{$self};
71 5 ▶ if (exists $OWNER{$self}) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists $OWNER{$self}) 5 0 5
72 5 GO::TermFinder::Nativec::delete_Distributions($self);
73 5 delete $OWNER{$self};
74 }
75 }
76  
77 2 *pValueByHypergeometric = *GO::TermFinder::Nativec::Distributions_pValueByHypergeometric;
78 2 *hypergeometric = *GO::TermFinder::Nativec::Distributions_hypergeometric;
79 2 *logNCr = *GO::TermFinder::Nativec::Distributions_logNCr;
80 2 *logFactorial = *GO::TermFinder::Nativec::Distributions_logFactorial;
81 0 ▶sub DISOWN {
Subroutine DISOWN: not called CC=1 SCAR=6.9
82 0 my $self = shift;
83 0 my $ptr = tied(%$self);
84 0 delete $OWNER{$ptr};
85 }
86  
87 0 ▶sub ACQUIRE {
Subroutine ACQUIRE: not called CC=1 SCAR=6.9
88 0 my $self = shift;
89 0 my $ptr = tied(%$self);
90 0 $OWNER{$ptr} = 1;
91 }
92  
93  
94 # ------- VARIABLE STUBS --------
95  
96 package GO::TermFinder::Native;
97  
98 2 1;
« AnnotatedGene.pm ↑ Summary AnnotationProvider.pm »