Branch Coverage

blib/lib/JavaScript/Code/Variable.pm
Criterion Covered Total %
branch 16 32 50.0


line true false branch
93 0 4 unless $name
96 0 4 unless $self->is_valid_name($name)
99 0 4 if defined $self->index
113 4 4 if (@_) { }
116 4 0 if (@_ == 1) { }
117 0 4 if (CORE::ref $_[0] eq 'HASH') { }
130 0 4 if exists $args{'index'}
137 0 4 unless CORE::ref $value and $value->isa('JavaScript::Code::Value')
165 0 4 unless $name
171 0 4 if $name =~ /\[.*\]$/
174 0 4 defined $self->declared ? :
180 4 0 unless $declared
183 4 0 if (defined(my $value = $self->value))
184 0 4 unless CORE::ref $value and $value->isa('JavaScript::Code::Value')
205 0 2 unless $other->isa('JavaScript::Code::Variable')
218 0 0 unless $other->isa('JavaScript::Code::Variable')