[Rt-devel] Possible RT testing bug

Jesse Vincent jesse at bestpractical.com
Wed Mar 9 18:10:41 EST 2005



> That type of problem looks to be somewhat common in the RT testing
> code. 

Really? I've not seen it much at all. patches are appreciated.
Most of the place, the idiom is:

($id,$msg) = RT::Foo->Bar();
ok($id,$msg);

> It has bugged me a little why RT doesn't use wantarray
> or put error messages in global vaiables, so that it is easier
> to call Create and the like in scalar context.

Have a look at Class::ReturnValue, which is the library I wrote to
enable just such functionality. But the time to retrofit it into code
has been scarce.

-- 


More information about the Rt-devel mailing list