Branch Coverage

blib/lib/WoW/Armory/API.pm
Criterion Covered Total %
branch 4 18 22.2


line true false branch
77 0 0 defined $t ? :
0 0 unless $$def[2]
99 0 1 if exists $opts{'Region'}
100 0 1 if exists $opts{'Locale'}
113 0 1 unless {cn => {api_host => 'www.battlenet.com.cn', locales => ['zh_CN']}, eu => {api_host => 'eu.battle.net', locales => ['en_GB', 'es_ES', 'fr_FR', 'ru_RU', 'de_DE', 'pt_PT', 'it_IT']}, kr => {api_host => 'kr.battle.net', locales => ['ko_KR']}, tw => {api_host => 'tw.battle.net', locales => ['zh_TW']}, us => {api_host => 'us.battle.net', locales => ['en_US', 'es_MX', 'pt_BR']}}->{$region}
126 1 0 unless (defined $locale)
130 0 0 unless $self->HasLocale($locale)
142 0 0 if $$self{'locale'}
156 0 0 $@ ? :