Branch Coverage

blib/lib/Megaport/Client.pm
Criterion Covered Total %
branch 0 40 0.0


line true false branch
21 0 0 if (exists $args->{'token'})
23 0 0 $self->no_verify ? :
26 0 0 if ($args->{'username'} and $args->{'password'})
32 0 0 if $self->debug
36 0 0 if ($@)
37 0 0 if $self->errstr('LoginError: API did not return valid JSON')
40 0 0 unless ($response->is_success and $obj->{'data'}{'session'})
41 0 0 if $self->errst('LoginError: ' . $obj->{'message'})
45 0 0 $self->no_verify ? :
54 0 0 if $self->debug
56 0 0 unless ($response->is_success)
57 0 0 if $self->debug
69 0 0 exists $args{'headers'} ? :
74 0 0 if $args{'content'}
78 0 0 if $self->debug
82 0 0 if ($@)
83 0 0 if $self->errstr('RequestError: API did not return valid JSON')
86 0 0 unless ($response->is_success)
87 0 0 if $self->errst('RequestError: ' . $obj->{'message'})
102 0 0 unless $response->is_success