Branch Coverage

lib/BalanceOfPower/Role/Merchant.pm
Criterion Covered Total %
branch 20 30 66.6


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