File Coverage

blib/lib/Medical/Growth/NHANES_2000/BMI_for_Age/Child/Male.pm
Criterion Covered Total %
statement 15 15 100.0
branch 2 2 100.0
condition 3 3 100.0
subroutine 5 5 100.0
pod 1 1 100.0
total 26 26 100.0


line stmt bran cond sub pod time code
1             #!/usr/bin/env perl
2              
3 2     2   1868 use 5.010;
  2         6  
  2         82  
4 2     2   11 use strict;
  2         3  
  2         78  
5 2     2   11 use warnings;
  2         2  
  2         122  
6              
7             package Medical::Growth::NHANES_2000::BMI_for_Age::Child::Male;
8              
9             our ($VERSION) = '1.00';
10              
11 2     2   657 use Moo::Lax; # Vanilla Moo considered harmful
  2         18319  
  2         16  
12              
13             extends 'Medical::Growth::NHANES_2000::Base';
14              
15             __PACKAGE__->_declare_params_LMS;
16              
17             # Inlined rather than in a base class - too small to merit reading
18             # another file
19             sub bmi {
20 5     5 1 306 my ( $self, $wt_kg, $ht_cm ) = @_;
21 5 100 100     29 return unless $ht_cm and $wt_kg;
22 3         20 return 10000 * $wt_kg / $ht_cm**2;
23             }
24              
25             1;
26              
27             # bmiagerev, sex = 1
28              
29             __DATA__