Branch Coverage

blib/lib/Mojo/Transmission.pm
Criterion Covered Total %
branch 30 46 65.2


line true false branch
20 0 3 ref $_[-1] eq 'CODE' ? :
24 1 2 if ($args->{'xt'})
26 1 0 unless $args->{'tr'}
29 1 2 unless ($url)
32 1 0 unless $args->{'tr'}
39 0 2 ref $_[-1] eq 'CODE' ? :
42 1 1 if ref $_[0] eq 'ARRAY'
43 1 0 if ref $_[0] eq 'HASH'
44 0 0 if $cb
49 0 1 ref $_[-1] eq 'CODE' ? :
54 0 6 ref $_[-1] eq 'CODE' ? :
57 5 1 if (defined $id)
58 5 0 ref $id ? :
61 2 4 if (ref $args eq 'ARRAY') { }
1 3 elsif (ref $args eq 'HASH') { }
1 2 elsif ($args eq 'purge') { }
63 1 1 if defined $id
67 1 0 if defined $id
84 0 12 if ($cb) { }
94 0 0 unless ($tx->res->code // 0) == 409
113 12 0 unless ($tx->res->code // 0) == 409
129 12 0 if not $res->{'result'} or $res->{'result'} ne 'success'
134 7 2 defined $_[0] && $_[0] >= 0 && $_[0] <= @TR_STATUS ? :