perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <do...@covalent.net>
Subject Re: cvs commit: modperl-2.0/t/response/TestDirective setupenv.pm
Date Mon, 19 Nov 2001 18:44:57 GMT
On Mon, 19 Nov 2001, Stas Bekman wrote:
 
> We should try not to print debug stuff without prefixing each line with 
> # (at least for the new tests that we write). Otherwise it may mess up 
> Test::Harness (according to its docs).

right.  i actually meant to take those out before committing.
 
> probably should add something like that:
> 
> Apache::TestUtil:
> sub t_print_debug { print map {"# $_\n"} map {split /\n/} @_ };

nice.  naming it t_print() would be fine too.
 
> and also
> 
> sub t_dumper {
>      require Data::Dumper;
>      t_print_debug(Data::Dumper::Dumper(@_));
> }
> 
> so now all you've to write is
> 
> t_dumper(\%env);

+1



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message