Branch Coverage

blib/lib/Net/BaruwaAPI.pm
Criterion Covered Total %
branch 20 32 62.5


line true false branch
66 0 0 if ($data)
73 0 0 if ($res->header('Content-Type') and $res->header('Content-Type') =~ m[application/json]) { }
76 0 0 unless ($data)
77 0 0 unless $res->is_error
84 0 0 if (not $res->is_success and ref $data eq 'HASH' and exists $data->{'message'})
87 0 0 if (exists $data->{'errors'})
100 1 1 unless @_ == 1
224 1 1 unless @_ == 1
310 1 1 unless @_ == 2
360 1 1 unless @_ == 2
416 1 1 unless @_ == 2
472 1 1 unless @_ == 2
531 1 1 unless @_ == 2
590 1 1 unless @_ == 2
646 1 1 unless @_ == 2
801 1 1 unless @_ == 1