Branch Coverage

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


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