NHANES_2000/BMI_for_Age/Child/Male.pm

filter: Statementstmt 100% 18 / 18 Branchbran 100% 2 / 2 Conditioncond 100% 3 / 3 MC/DCmcdc 100% 2 / 2 Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 31 / 31 CC 3 SCAR 6.2
CC
3
Cov
100%
bmi
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.9
« NHANES_2000/BMI_for_Age/Child/Female.pm ↑ Summary NHANES_2000/HC_for_Age/Infant/Female.pm »
1 #!/usr/bin/env perl
2  
3 2 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 package Medical::Growth::NHANES_2000::BMI_for_Age::Child::Male;
8  
9 2 our ($VERSION) = '1.00';
10  
11 2 ▶use Moo::Lax; # Vanilla Moo considered harmful
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 2 extends 'Medical::Growth::NHANES_2000::Base';
14  
15 2 __PACKAGE__->_declare_params_LMS;
16  
17 # Inlined rather than in a base class - too small to merit reading
18 # another file
19 5 ▶sub bmi {
Subroutine bmi: called CC=3 SCAR=11.0
Pod documented
20 5 my ( $self, $wt_kg, $ht_cm ) = @_;
21 5 ▶ return unless $ht_cm and $wt_kg;
Branch: 1 branch
BranchTrueFalseTotal
unless $ht_cm and $wt_kg 2 3 5
Condition100%3/3
$ht_cm and $wt_kg
!ll&&!rl&&r
113
MC/DC100%2/2
$ht_cm and $wt_kg
$ht_cm $wt_kg
Truth table100%3/3
A and B
A= $ht_cmB= $wt_kg
ABresult
0X0
100
111
22 3 return 10000 * $wt_kg / $ht_cm**2;
23 }
24  
25 2 1;
26  
27 # bmiagerev, sex = 1
28  
29 __DATA__
« NHANES_2000/BMI_for_Age/Child/Female.pm ↑ Summary NHANES_2000/HC_for_Age/Infant/Female.pm »