Branch Coverage

blib/lib/Net/Correios.pm
Criterion Covered Total %
branch 10 28 35.7


line true false branch
35 6 0 unless ($self->{$internal_key})
51 3 8 unless $args{'username'} and $args{'password'}
75 0 10 if defined $token_type and $token_type ne "cartao" and $token_type ne "contrato"
78 10 0 defined $token_type ? :
79 10 0 if defined $self->{$storage_key}
82 0 0 defined $token_type ? :
86 0 0 if ($token_res->{'cartaoPostagem'} and !$self->{'cartao'} || $self->{'cartao'} eq $token_res->{'cartaoPostagem'}{'numero'})
88 0 0 unless $self->{'contrato'}
95 3 5 unless defined $args
101 0 8 if ($self->{'debug'})
105 0 0 exists $args->{'content'} && defined $args->{'content'} && length $args->{'content'} ? :
113 9 0 if ($res->{'success'}) { }
119 0 0 if length $res->{'content'}
127 0 0 if @_ > 1