Branch Coverage

blib/lib/Thrift/SASL/Transport.pm
Criterion Covered Total %
branch 0 60 0.0


line true false branch
19 0 0 if ($self->{'trans'}{'_sasl_client'} and not $self->{'trans'}{'_sasl_encode'})
48 0 0 if $self->{'_debug'}
57 0 0 unless defined $data
59 0 0 if ($length) { }
66 0 0 if $self->{'_debug'}
72 0 0 unless $self->{'_transport'} and $self->isOpen
73 0 0 unless $self->isOpen
79 0 0 if $self->{'_transport'} and $self->isOpen
87 0 0 if $self->{'_debug'}
98 0 0 if $self->{'_debug'}
104 0 0 if ($code == 5)
106 0 0 if $self->{'_debug'}
114 0 0 if ($code == 3 or $code == 4)
115 0 0 $extra_msg ? :
123 0 0 unless (defined $data)
124 0 0 $extra_msg ? :
140 0 0 unless $client->isa('Authen::SASL::XS') or $client->isa('Authen::SASL::Cyrus')
144 0 0 if exists $ENV{'USER'} or exists $ENV{'USERNAME'}
160 0 0 if $self->{'_debug'} > 1
169 0 0 if $self->{'_debug'}
171 0 0 if &bytes::length($buf) > 0
189 0 0 if ($self->{'_sasl_encode'}) { }
191 0 0 unless my $decoded = $self->{'_sasl_client'}->decode($encoded)
209 0 0 if $self->{'_debug'}
211 0 0 if ($self->{'_sasl_encode_check'})
213 0 0 if (&bytes::length($encoded) and &bytes::length($encoded) != &bytes::length($self->{'_out_buffer'})) { }
217 0 0 if $self->{'_debug'}
221 0 0 if $self->{'_debug'}
225 0 0 if ($self->{'_sasl_encode'}) { }
246 0 0 if $self->{'_debug'} > 1