Branch Coverage

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


line true false branch
35 6 0 unless ($self->{$internal_key})
51 3 8 unless $args{'username'} and $args{'password'}
74 0 10 if defined $token_type and $token_type ne "cartao" and $token_type ne "contrato"
77 10 0 defined $token_type ? :
78 10 0 if defined $self->{$storage_key}
81 0 0 defined $token_type ? :
85 0 0 if ($token_res->{'cartaoPostagem'} and !$self->{'cartao'} || $self->{'cartao'} eq $token_res->{'cartaoPostagem'}{'numero'})
87 0 0 unless $self->{'contrato'}
94 3 5 unless defined $args
104 9 0 if ($res->{'success'}) { }
110 0 0 if length $res->{'content'}