Branch Coverage

blib/lib/JavaScript/MochiKit.pm
Criterion Covered Total %
branch 23 38 60.5


line true false branch
48 0 7 if @classes < 1
51 6 1 if (ref $classes[0] eq 'ARRAY')
52 6 0 if @classes > 1
57 0 8 if ref $class
61 3 5 unless ($module = $JavaScriptModules{uc $class})
65 0 3 if $JavaScript::MochiKit::DEBUG
71 3 5 unless ($module->required)
74 0 3 if $@
76 0 3 if $JavaScript::MochiKit::DEBUG
80 3 0 if (defined $dependencies) { }
82 0 1 unless &is_required($dep)
87 0 0 if $JavaScript::MochiKit::DEBUG
94 3 5 if ($load_javascript != 0 and not $module->javascript_loaded)
97 0 3 if $@
99 0 3 if $JavaScript::MochiKit::DEBUG
110 0 3 if $JavaScript::MochiKit::DEBUG
126 3 0 if (my $glob = ${"${namespace}::";}{$variable})
127 3 0 if (my $ref = *{$glob;}{$type})
182 1 3 if @classes < 1