Branch Coverage

lib/Transmission/Torrent.pm
Criterion Covered Total %
branch 1 24 4.1


line true false branch
331 0 1 if $_[0]->lazy_write
347 0 0 unless $data
477 0 0 unless $data = $self->client->rpc('torrent-get', 'ids', [$self->id], 'fields', [@fields])
482 0 0 unless $data = $data->{'torrents'}[0]
489 0 0 $READ{$camel} ? :
535 0 0 unless $data
542 0 0 unless my $stats = shift @$stats
620 0 0 unless ($path)
646 0 0 $file->wanted ? :
651 0 0 unless @{$wanted{$key};}
654 0 0 unless $self->client->rpc('torrent-set', 'ids', [$self->id], "files-$key", $wanted{$key})
681 0 0 unless $self->client->rpc('torrent-set', 'ids', [$self->id], "priority-$key", $priority{$key})