| lib/BalanceOfPower/Role/Diplomat.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 19 | 42 | 45.2 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 46 | 72 | 141 | 141 | $n1 ne $n2 and not $self->_diplomacy_exists($n1, $n2) |
| 128 | 111 | 6 | 4 | $nation and $r->has_node($nation) |
| 410 | 89 | 14 | 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 |
| line | l | !l | condition |
|---|---|---|---|
| 297 | 0 | 0 | shift() || 'print' |
| 349 | 180 | 0 | shift() || '' |
| 350 | 180 | 0 | shift() || '' |
| 448 | 0 | 0 | shift() || 'TREATIES' |
| 449 | 0 | 0 | shift() || undef |
| 450 | 0 | 0 | shift() || 'print' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 128 | 4 | 111 | 6 | $nation and $r->has_node($nation) or not $nation |
| 130 | 2 | 0 | 113 | $self->is_under_influence($r->node1) or $self->is_under_influence($r->node2) |
| 202 | 3 | 0 | 48 | $r->status eq 'ALLIANCE' or $r->status eq 'INFLUENCE PRESENT' |
| 410 | 10 | 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 |