Branch Coverage

lib/BalanceOfPower/Role/Merchant.pm
Criterion Covered Total %
branch 21 30 70.0


line true false branch
36 4 6 unless exists $routes_counter{$n->name}
45 11 0 if ($second_node->name ne $n->name and not $self->route_exists($n->name, $second_node->name))
51 6 5 unless exists $routes_counter{$second_node->name}
68 18 0 if ($distance ne 'X')
70 7 11 if ($distance == 1) { }
3 8 elsif ($distance == 2) { }
81 0 18 if ($n1->size < $n2->size)
85 0 18 if ($n2->size < $n1->size)
94 3 15 if ($added)
115 0 1 if ($present_treaty) { }
135 0 7 if $nation->production < 30
136 0 7 if $nation->internal_disorder_status eq 'Civil war'
144 0 4 if $self->route_exists($node1->name, $node2->name)
145 3 1 if ($self->diplomacy_status($node1->name, $node2->name) ne 'HATE') { }
147 3 0 if ($self->suitable_route_creator($node2->name))