Branch Coverage

blib/lib/Net/Correios.pm
Criterion Covered Total %
branch 9 22 40.9


line true false branch
34 5 0 unless ($self->{$internal_key})
50 3 7 unless $args{'username'} and $args{'password'}
73 0 8 if defined $token_type and $token_type ne "cartao" and $token_type ne "contrato"
76 8 0 defined $token_type ? :
77 8 0 if defined $self->{$storage_key}
80 0 0 defined $token_type ? :
84 0 0 if ($token_res->{'cartaoPostagem'} and !$self->{'cartao'} || $self->{'cartao'} eq $token_res->{'cartaoPostagem'}{'numero'})
86 0 0 unless $self->{'contrato'}
93 3 4 unless defined $args
103 8 0 if ($res->{'success'}) { }
109 0 0 if length $res->{'content'}