Branch Coverage

blib/lib/WWW/Challonge.pm
Criterion Covered Total %
branch 25 38 65.7


line true false branch
60 0 10 if (not ref $args and defined $args) { }
8 2 elsif (ref $args eq 'HASH') { }
69 1 7 unless defined $$args{'client'} and UNIVERSAL::isa($$args{'client'}, 'LWP::UserAgent')
85 1 6 if $response->is_error
180 5 1 if ($option =~ /^state$/) { }
0 1 elsif ($option =~ /^type$/) { }
0 1 elsif ($option =~ /^created_(before|after)$/) { }
0 1 elsif ($option =~ /^subdomain$/) { }
182 1 4 unless ($$options{$option} =~ /^all|pending|in_progress|ended$/)
190 0 0 unless ($$options{$option} =~ /^(single|double)_elimination|round_robin|swiss$/)
198 0 0 unless ($$options{$option} =~ /^\d{4}-\d{2}-\d{2}$/)
206 0 0 unless ($$options{$option} =~ /^[a-zA-Z0-9_]*$/)
225 0 7 if $response->is_error
258 1 13 unless defined $url
268 1 12 if $response->is_error
469 2 11 unless (defined $$args{'name'} and defined $$args{'url'})
475 0 11 unless WWW::Challonge::Tournament::__args_are_valid($args)
485 2 9 if $response->is_error
506 14 0 if (not $@) { }