File Coverage

blib/lib/Medical/Growth/NHANES_2000/BMI_for_Age/Child/Female.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   3616 use 5.010;
  2         6  
  2         67  
4 2     2   10 use strict;
  2         2  
  2         65  
5 2     2   7 use warnings;
  2         2  
  2         127  
6              
7             package Medical::Growth::NHANES_2000::BMI_for_Age::Child::Female;
8              
9             our ($VERSION) = '1.00';
10              
11 2     2   647 use Moo::Lax; # Vanilla Moo considered harmful
  2         13365  
  2         15  
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 381 my ( $self, $wt_kg, $ht_cm ) = @_;
21 5 100 100     29 return unless $ht_cm and $wt_kg;
22 3         22 return 10000 * $wt_kg / $ht_cm**2;
23             }
24              
25             1;
26              
27             # bmiagerev, sex = 2
28              
29             __DATA__