| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package Net::SSH::Perl::Comp; | 
| 2 |  |  |  |  |  |  |  | 
| 3 | 1 |  |  | 1 |  | 7 | use strict; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 28 |  | 
| 4 | 1 |  |  | 1 |  | 5 | use warnings; | 
|  | 1 |  |  |  |  | 1 |  | 
|  | 1 |  |  |  |  | 26 |  | 
| 5 | 1 |  |  | 1 |  | 4 | use Carp qw( croak ); | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 42 |  | 
| 6 |  |  |  |  |  |  |  | 
| 7 | 1 |  |  | 1 |  | 5 | use vars qw( %COMP ); | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 277 |  | 
| 8 |  |  |  |  |  |  | %COMP = ( | 
| 9 |  |  |  |  |  |  | 'zlib' => 'Zlib', | 
| 10 |  |  |  |  |  |  | ); | 
| 11 |  |  |  |  |  |  |  | 
| 12 |  |  |  |  |  |  | sub new { | 
| 13 | 0 |  |  | 0 | 1 |  | my $class = shift; | 
| 14 | 0 |  |  |  |  |  | my $type = shift; | 
| 15 | 0 | 0 |  |  |  |  | return if $type eq 'none'; | 
| 16 | 0 |  | 0 |  |  |  | my $comp_class = join '::', __PACKAGE__, $COMP{$type} || $type; | 
| 17 | 0 |  |  |  |  |  | eval "use $comp_class;"; | 
| 18 | 0 |  |  |  |  |  | my $comp = bless {}, $comp_class; | 
| 19 | 0 | 0 |  |  |  |  | $comp->init(@_) if @_; | 
| 20 | 0 |  |  |  |  |  | $comp; | 
| 21 |  |  |  |  |  |  | } | 
| 22 |  |  |  |  |  |  |  | 
| 23 | 0 |  |  | 0 | 1 |  | sub enabled { $_[0]->{enabled} } | 
| 24 | 0 |  |  | 0 | 1 |  | sub enable { $_[0]->{enabled} = 1 } | 
| 25 |  |  |  |  |  |  |  | 
| 26 |  |  |  | 0 | 1 |  | sub init { } | 
| 27 |  |  |  |  |  |  |  | 
| 28 | 0 |  |  | 0 | 1 |  | sub compress { $_[0] } | 
| 29 | 0 |  |  | 0 | 0 |  | sub uncompress { $_[0] } | 
| 30 |  |  |  |  |  |  |  | 
| 31 |  |  |  |  |  |  | 1; | 
| 32 |  |  |  |  |  |  | __END__ |