Branch Coverage

blib/lib/Mojo/Transmission.pm
Criterion Covered Total %
branch 41 52 78.8


line true false branch
21 0 3 ref $_[-1] eq 'CODE' ? :
25 1 2 if ($args->{'xt'})
27 1 0 unless $args->{'tr'}
30 1 2 unless ($url)
33 1 0 unless $args->{'tr'}
42 3 3 ref $_[-1] eq 'CODE' ? :
45 4 2 if ref $_[0] eq 'ARRAY'
46 2 0 if ref $_[0] eq 'HASH'
47 0 0 if $cb
54 0 1 ref $_[-1] eq 'CODE' ? :
61 6 6 ref $_[-1] eq 'CODE' ? :
64 9 3 if (defined $id)
65 5 4 ref $id ? :
68 4 8 if (ref $args eq 'ARRAY') { }
2 6 elsif (ref $args eq 'HASH') { }
2 4 elsif ($args eq 'purge') { }
70 2 2 if defined $id
74 2 0 if defined $id
90 1 9 unless $cb eq sub { }
99 10 13 if ($cb) { }
104 10 0 unless ($tx->res->code // 0) == 409
108 10 0 if ref $_[0] eq 'HASH'
114 9 1 $cb eq sub { } ? :
122 13 0 unless ($tx->res->code // 0) == 409
138 19 4 if not $res->{'result'} or $res->{'result'} ne 'success'
143 7 2 defined $_[0] && $_[0] >= 0 && $_[0] <= @TR_STATUS ? :