blib/lib/Net/Transmission.pm

filter: Statementstmt 88.8% 24 / 27 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod n/a totaltotal 83.3% 30 / 36 CC 2 SCAR 6.0
CC
2
Cov
83%
__ANON__
4.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.8
↑ Summary
1 #$Id: Transmission.pm 640 2009-11-13 15:25:11Z zag $
2  
3 package Net::Transmission;
4  
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Collection;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 our @ISA = ();
9 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use 5.005;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 =head1 NAME
13  
14 Net::Transmission - Perl interface to Transmission
15  
16 =head1 SYNOPSIS
17  
18 use Net::Transmission;
19  
20 =head1 ABSTRACT
21
22 Transmission is a cross-platform BitTorrent client.
23  
24 =head1 DESCRIPTION
25  
26 Net::Transmission - Perl interface to Transmission.
27  
28 =cut
29  
30  
31 1 our $VERSION = '0.01_03';
32 1 my $attrs = {
33 _cli => undef,
34 };
35 ### install get/set accessors for this object.
36 1 for my $key ( keys %$attrs ) {
37 1 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
38 1 ▶ *{ __PACKAGE__ . "::$key" } = sub {
Subroutine __ANON__: not called CC=2 SCAR=14.6
39 0 my $self = shift;
40 0 ▶ $self->{$key} = $_[0] if @_;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 0 0 0
41 0 return $self->{$key};
42 }
43 1 }
44 1 1;
45 =head1 METHODS
46  
47 =cut
48  
49 =head1 SEE ALSO
50  
51 L<http://trac.transmissionbt.com/>
52  
53 =head1 AUTHOR
54  
55 Zahatski Aliaksandr, E<lt>zag@cpan.orgE<gt>
56  
57 =head1 COPYRIGHT AND LICENSE
58  
59 Copyright 2009 by Zahatski Aliaksandr
60  
61 This library is free software; you can redistribute it and/or modify
62 it under the same terms as Perl itself.
63  
64 =cut
↑ Summary