Condition Coverage

lib/BalanceOfPower/Role/Diplomat.pm
Criterion Covered Total %
condition 18 42 42.8


and 3 conditions

line !l l&&!r l&&r condition
46 72 141 141 $n1 ne $n2 and not $self->_diplomacy_exists($n1, $n2)
128 74 1 1 $nation and $r->has_node($nation)
410 87 24 0 $rel and $rel->type eq $type || $rel->type eq 'alliance'
455 0 0 0 $treaty && $_->type eq $treaty || !$treaty and $nation && $_->involve($nation) || !$nation

or 2 conditions

line l !l condition
297 0 0 shift() || 'print'
349 130 0 shift() || ''
350 130 0 shift() || ''
448 0 0 shift() || 'TREATIES'
449 0 0 shift() || undef
450 0 0 shift() || 'print'

or 3 conditions

line l !l&&r !l&&!r condition
128 1 74 1 $nation and $r->has_node($nation) or not $nation
130 0 0 75 $self->is_under_influence($r->node1) or $self->is_under_influence($r->node2)
202 2 0 56 $r->status eq 'ALLIANCE' or $r->status eq 'INFLUENCE PRESENT'
410 20 4 0 $rel->type eq $type || $rel->type eq 'alliance'
455 0 0 0 $treaty && $_->type eq $treaty || !$treaty
0 0 0 $nation && $_->involve($nation) || !$nation