| line |
true |
false |
branch |
|
30
|
0 |
2 |
unless defined $self->{'FILE'} |
|
33
|
2 |
0 |
if (-e $self->{'FILE'} and -r $self->{'FILE'}) { } |
|
37
|
16 |
0 |
if ($_ =~ /(\w+:\d+)\s+(.*)/) { } |
|
58
|
0 |
5 |
$new_name =~ /\w+:\d+/ ? : |
|
74
|
7 |
0 |
if ($new_id and $new_name) { } |
|
75
|
0 |
7 |
if $self->_is_valid_id($new_id) |
|
80
|
4 |
3 |
if (not $has_key || $has_value) { } |
|
|
3 |
0 |
elsif ($has_key and not $has_value) { } |
|
|
0 |
0 |
elsif ($has_key and $has_value) { } |
|
90
|
0 |
0 |
if ($self->{'MAP_BY_ID'}{$new_id} eq $new_name and $self->{'MAP_BY_TERM'}{$new_name} eq $new_id) { } |
|
117
|
0 |
0 |
if ($idspace and $term_name) |
|
118
|
0 |
0 |
if ($self->is_empty and not $seed_id) { } |
|
|
0 |
0 |
elsif ($seed_id and $seed_id =~ /$idspace:\d{7}/ and not $self->contains_key($seed_id)) { } |
|
197
|
73 |
6 |
defined $self->{'MAP_BY_ID'}{$searched_key} ? : |
|
211
|
70 |
11 |
defined $self->{'MAP_BY_TERM'}{$searched_value} ? : |
|
231
|
2 |
6 |
if $self->size != $other_map->size |
|
246
|
50 |
2 |
if ($other_map_has_key and $other_map_has_value) { } |
|
247
|
50 |
0 |
if ($tmp_id eq $other_map->get_id_by_term($tmp_name) and $tmp_name eq $other_map->get_term_by_id($tmp_id)) { } |
|
288
|
0 |
0 |
if (@_) |
|
332
|
0 |
0 |
unless open FH, '>' . $self->{'FILE'} |
|
334
|
0 |
0 |
if ($self->{'MAP_BY_ID'}{$_}) { } |