File Coverage

blib/lib/JavaScript/MochiKit/Module.pm
Criterion Covered Total %
statement 7 7 100.0
branch 0 2 0.0
condition n/a
subroutine 3 3 100.0
pod 0 1 0.0
total 10 13 76.9


line stmt bran cond sub pod time code
1             package JavaScript::MochiKit::Module;
2            
3 2     2   10 use strict;
  2         5  
  2         85  
4 2     2   10 use base qw[ JavaScript::MochiKit::Accessor ];
  2         5  
  2         255  
5            
6             __PACKAGE__->mk_accessors(qw[ name required javascript_definition ]);
7            
8             sub javascript_loaded {
9             return defined shift->javascript_definition
10 8 0   8 0 20 and shift->javascript_definition ne '';
11             }
12            
13             1;