Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CGI CPAN distribution.

Report information
The Basics
Id: 5993
Status: resolved
Priority: 0/
Queue: CGI

People
Owner: LDS [...] cpan.org
Requestors: MARKSTOS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: wish: test for 'upload' method
Download (untitled) / with headers
text/plain 543b
File uploading is an important function of CGI.pm. I would like to see an automated test for in the test suite to confirm that it keeps working over time. If you'd like, you may be interested to use the method for testing this provided by CGI::Uploader: http://search.cpan.org/src/MARKSTOS/CGI-Uploader-0.61_02/t/basic.t http://search.cpan.org/src/MARKSTOS/CGI-Uploader-0.61_02/t/upload_post_text.txt However, I wrote that code, and I came to look at the CGI.pm distribution to see there might be a better/easier way to do this. :) Mark
From: markstos [...] cpan.org
Download (untitled) / with headers
text/plain 321b
I poked around a bit more and found that CGI::Simple seems to have a fairly elegent method for testing the upload function(): http://search.cpan.org/src/JFREEMAN/Cgi-Simple-0.071/t/simple.t Since the syntax for 'upload' is the same there, you should be able to re-use the tests for upload() directly. Mark Stosberg


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.