Condition Coverage

lib/Class/Builder.pm
Criterion Covered Total %
condition 9 54 16.6


and 3 conditions

line !l l&&!r l&&r condition
54 0 0 3 scalar @_ == 1 and ref $_[0] eq 'HASH'
72 0 0 0 @args == 1 and ref $args[0] eq 'HASH'
77 0 0 0 @args == 1 and ref $args[0] eq 'ARRAY'
161 6 0 0 $$fieldarg{'final'} and $$fieldarg{'type'} eq 'counter'
172 0 0 0 $default and not ref $default
268 0 0 0 @_ == 1 and ref $_[0] eq 'ARRAY'
317 0 0 0 @_ == 1 and ref $_[0] eq 'HASH'
341 0 0 0 exists $$self{$name} && exists $$self{$name}{$key}
361 0 0 0 @_ == 1 and ref $_[0]
417 0 0 0 @_ == 1 and ref $_[0]
479 2 0 2 $args[0] and ref $args[0] eq 'HASH'

or 2 conditions

line l !l condition
119 0 3 $Class::Builder::defaults{$class} ||= {}
120 0 3 $Class::Builder::initializers{$class} ||= []
401 0 0 $$defaults{$name} || 0
423 0 0 $new ||= 1
429 0 0 $new ||= 1
435 0 0 $$defaults{$name} || 0

or 3 conditions

line l !l&&r !l&&!r condition
73 0 0 0 my $class ||= (caller 1)[0]
115 3 0 0 $class ||= (caller 1)[0]
141 0 1 2 $$special_methods{'constructor'} or $class->can('new')