Metabolic/Dynamics/Substrate.pm

filter: Statementstmt 100% 17 / 17 Branchbran 75.0% 3 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 3 / 3 totaltotal 96.5% 28 / 29 CC 3 SCAR 6.2
CC
3
Cov
95%
var
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.9
« Metabolic/Substrate/Cluster.pm ↑ Summary Metabolic.pm »
1 package Bio::Metabolic::Dynamics::Substrate;
2  
3 1 require 5.005_62;
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 require Exporter;
8  
9 1 our $VERSION = '0.06';
10  
11 16 ▶sub Bio::Metabolic::Substrate::var {
Subroutine var: called CC=3 SCAR=11.0
Pod documented
12 16 my $self = shift;
13 16 ▶ $self->{var} = shift if @_;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 0 16 16
14  
15 $self->{var} = Math::Symbolic::Variable->new( $self->name )
16 16 ▶ unless defined $self->{var};
Branch: 1 branch
BranchTrueFalseTotal
unless defined $self->{"var"} 4 12 16
17 16 return $self->{var};
18 }
19  
20 1 ▶sub Bio::Metabolic::Substrate::fix {
Subroutine fix: called CC=1 SCAR=0.0
Pod documented
21 1 my $self = shift;
22 1 my $value = shift;
23  
24 1 return $self->var->value($value);
25 }
26  
27 1 ▶sub Bio::Metabolic::Substrate::release {
Subroutine release: called CC=1 SCAR=0.0
Pod documented
28 1 shift->var->value(undef);
29 }
« Metabolic/Substrate/Cluster.pm ↑ Summary Metabolic.pm »