in reply to Re: CPAN Testing in multiple platforms how to Debug?
in thread CPAN Testing in multiple platforms how to Debug?
the part that fails in the get_report sub is as follows:eval { $sfr = WWW::Salesforce::Report->new( file => "t/report.csv", ); $data = $sfr->get_report(); };
report.csv is a file that exists in the test directory or "WWW-Salesforce-Report-0.01/t"sub get_report () { ... open my $fh,"<", $self->{ file } or croak "Could not open $self->{ file } : $!"; $res = ""; while( <$fh> ) { $res .= $_; } ... }
$self->{ file } is assigned in new to the file name passed in "file"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: CPAN Testing in multiple platforms how to Debug?
by paixaop (Novice) on Jun 15, 2010 at 02:44 UTC | |
by Corion (Patriarch) on Jun 15, 2010 at 06:58 UTC |