| 1 | package Lim::RPC::Transport::Client; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 1 | ▶ | use common::sense; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | 1 | ▶ | use Carp; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | |||||||||||||||||||||
| 6 | 1 | ▶ | use Scalar::Util qw(blessed weaken); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 7 | 1 | ▶ | use Log::Log4perl (); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | 1 | ▶ | use Lim (); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 10 | |||||||||||||||||||||
| 11 | =encoding utf8 | ||||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | =head1 NAME | ||||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | ... | ||||||||||||||||||||
| 16 | |||||||||||||||||||||
| 17 | =head1 VERSION | ||||||||||||||||||||
| 18 | |||||||||||||||||||||
| 19 | See L<Lim> for version. | ||||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | =over 4 | ||||||||||||||||||||
| 22 | |||||||||||||||||||||
| 23 | =item OK | ||||||||||||||||||||
| 24 | |||||||||||||||||||||
| 25 | =item ERROR | ||||||||||||||||||||
| 26 | |||||||||||||||||||||
| 27 | =back | ||||||||||||||||||||
| 28 | |||||||||||||||||||||
| 29 | =cut | ||||||||||||||||||||
| 30 | |||||||||||||||||||||
| 31 | 1 | our $VERSION = $Lim::VERSION; | |||||||||||||||||||
| 32 | |||||||||||||||||||||
| 33 | =head1 SYNOPSIS | ||||||||||||||||||||
| 34 | |||||||||||||||||||||
| 35 | ... | ||||||||||||||||||||
| 36 | |||||||||||||||||||||
| 37 | =head1 SUBROUTINES/METHODS | ||||||||||||||||||||
| 38 | |||||||||||||||||||||
| 39 | =head2 new | ||||||||||||||||||||
| 40 | |||||||||||||||||||||
| 41 | =cut | ||||||||||||||||||||
| 42 | |||||||||||||||||||||
| 43 | 0 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||||||||||
| 44 | 0 | my $this = shift; | |||||||||||||||||||
| 45 | 0 | ▶ | my $class = ref($this) || $this; | ||||||||||||||||||
|
Condition0%0/3
ref $this || $this
MC/DC0%0/2
ref $this || $this
ref $this
$this
Truth table0%0/3
A || B
A= ref $thisB= $this
| |||||||||||||||||||||
| 46 | 0 | my %args = ( @_ ); | |||||||||||||||||||
| 47 | 0 | my $self = { | |||||||||||||||||||
| 48 | logger => Log::Log4perl->get_logger($class), | ||||||||||||||||||||
| 49 | }; | ||||||||||||||||||||
| 50 | 0 | bless $self, $class; | |||||||||||||||||||
| 51 | 0 | weaken($self->{logger}); | |||||||||||||||||||
| 52 | |||||||||||||||||||||
| 53 | 0 | $self->Init(@_); | |||||||||||||||||||
| 54 | |||||||||||||||||||||
| 55 | 0 | ▶ | Lim::OBJ_DEBUG and $self->{logger}->debug('new ', __PACKAGE__, ' ', $self); | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 56 | 0 | $self; | |||||||||||||||||||
| 57 | } | ||||||||||||||||||||
| 58 | |||||||||||||||||||||
| 59 | 0 | ▶ | sub DESTROY { | ||||||||||||||||||
|
Subroutine
DESTROY: not called CC=2 SCAR=17.9
| |||||||||||||||||||||
| 60 | 0 | my ($self) = @_; | |||||||||||||||||||
| 61 | 0 | ▶ | Lim::OBJ_DEBUG and $self->{logger}->debug('destroy ', __PACKAGE__, ' ', $self); | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 62 | |||||||||||||||||||||
| 63 | 0 | $self->Destroy; | |||||||||||||||||||
| 64 | } | ||||||||||||||||||||
| 65 | |||||||||||||||||||||
| 66 | =head2 Init | ||||||||||||||||||||
| 67 | |||||||||||||||||||||
| 68 | =cut | ||||||||||||||||||||
| 69 | |||||||||||||||||||||
| 70 | 0 | ▶ | sub Init { | ||||||||||||||||||
|
Subroutine
Init: not called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||
| 71 | } | ||||||||||||||||||||
| 72 | |||||||||||||||||||||
| 73 | =head2 Destroy | ||||||||||||||||||||
| 74 | |||||||||||||||||||||
| 75 | =cut | ||||||||||||||||||||
| 76 | |||||||||||||||||||||
| 77 | 0 | ▶ | sub Destroy { | ||||||||||||||||||
|
Subroutine
Destroy: not called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||
| 78 | } | ||||||||||||||||||||
| 79 | |||||||||||||||||||||
| 80 | =head2 name | ||||||||||||||||||||
| 81 | |||||||||||||||||||||
| 82 | =cut | ||||||||||||||||||||
| 83 | |||||||||||||||||||||
| 84 | 0 | ▶ | sub name { | ||||||||||||||||||
|
Subroutine
name: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 85 | 0 | confess 'function name not overloaded'; | |||||||||||||||||||
| 86 | } | ||||||||||||||||||||
| 87 | |||||||||||||||||||||
| 88 | =head2 request | ||||||||||||||||||||
| 89 | |||||||||||||||||||||
| 90 | =cut | ||||||||||||||||||||
| 91 | |||||||||||||||||||||
| 92 | 0 | ▶ | sub request { | ||||||||||||||||||
|
Subroutine
request: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 93 | 0 | confess 'function serve not overloaded'; | |||||||||||||||||||
| 94 | } | ||||||||||||||||||||
| 95 | |||||||||||||||||||||
| 96 | =head1 AUTHOR | ||||||||||||||||||||
| 97 | |||||||||||||||||||||
| 98 | Jerry Lundström, C<< <lundstrom.jerry at gmail.com> >> | ||||||||||||||||||||
| 99 | |||||||||||||||||||||
| 100 | =head1 BUGS | ||||||||||||||||||||
| 101 | |||||||||||||||||||||
| 102 | Please report any bugs or feature requests to L<https://github.com/jelu/lim/issues>. | ||||||||||||||||||||
| 103 | |||||||||||||||||||||
| 104 | =head1 SUPPORT | ||||||||||||||||||||
| 105 | |||||||||||||||||||||
| 106 | You can find documentation for this module with the perldoc command. | ||||||||||||||||||||
| 107 | |||||||||||||||||||||
| 108 | perldoc Lim | ||||||||||||||||||||
| 109 | |||||||||||||||||||||
| 110 | You can also look for information at: | ||||||||||||||||||||
| 111 | |||||||||||||||||||||
| 112 | =over 4 | ||||||||||||||||||||
| 113 | |||||||||||||||||||||
| 114 | =item * Lim issue tracker (report bugs here) | ||||||||||||||||||||
| 115 | |||||||||||||||||||||
| 116 | L<https://github.com/jelu/lim/issues> | ||||||||||||||||||||
| 117 | |||||||||||||||||||||
| 118 | =back | ||||||||||||||||||||
| 119 | |||||||||||||||||||||
| 120 | =head1 ACKNOWLEDGEMENTS | ||||||||||||||||||||
| 121 | |||||||||||||||||||||
| 122 | =head1 LICENSE AND COPYRIGHT | ||||||||||||||||||||
| 123 | |||||||||||||||||||||
| 124 | Copyright 2012-2013 Jerry Lundström. | ||||||||||||||||||||
| 125 | |||||||||||||||||||||
| 126 | This program is free software; you can redistribute it and/or modify it | ||||||||||||||||||||
| 127 | under the terms of either: the GNU General Public License as published | ||||||||||||||||||||
| 128 | by the Free Software Foundation; or the Artistic License. | ||||||||||||||||||||
| 129 | |||||||||||||||||||||
| 130 | See http://dev.perl.org/licenses/ for more information. | ||||||||||||||||||||
| 131 | |||||||||||||||||||||
| 132 | |||||||||||||||||||||
| 133 | =cut | ||||||||||||||||||||
| 134 | |||||||||||||||||||||
| 135 | 1 | 1; # End of Lim::RPC::Transport::Client | |||||||||||||||||||