fixing tests for new output method
This commit is contained in:
parent
74381281fa
commit
d2116bf797
3 changed files with 31 additions and 16 deletions
|
|
@ -349,6 +349,26 @@ sub setup_param {
|
|||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
sub clear_output {
|
||||
my $self = shift;
|
||||
$self->{output} = '';
|
||||
}
|
||||
|
||||
sub get_output {
|
||||
my $self = shift;
|
||||
return $self->{output};
|
||||
}
|
||||
|
||||
sub print {
|
||||
my $self = shift;
|
||||
$self->{output} ||= '';
|
||||
for my $p (@_) {
|
||||
$self->{output} .= $p;
|
||||
}
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
=head2 protocol ( $value )
|
||||
|
||||
Getter and setter for protocol. If $value is passed in, it will set the protocol of
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue