Skip Menu |

This queue is for tickets about the Test-SimpleUnit CPAN distribution.

Report information
The Basics
Id: 14017
Status: new
Priority: 0/
Queue: Test-SimpleUnit

People
Owner: Nobody in particular
Requestors: tmetro [...] cpan.org
Cc:
AdminCc:

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



Subject: POD errors in example
The POD shown here: http://search.cpan.org/~ged/Test-SimpleUnit-1.21/lib/Test/SimpleUnit.pm#Assertion_Functions included the following example code: my @tests = ( [...] ); runTests( @testSuite ); I believe both of those arrays should have the same name. In addition, this code: # One-time setup function -- overrides the previous setup, but is # immediately discarded after executing once. { name => 'setup', func => sub { MyClass::prepNetwork(); }, }, uses a "func" key, which is undocumented or an error. The other tests use a "test" key. -Tom
Show quoted text
> name => 'setup', > func => sub { > > uses a "func" key, which is undocumented or an error. The other tests > use a "test" key.
My mistake, it is documented: http://search.cpan.org/~ged/Test-SimpleUnit-1.21/lib/Test/SimpleUnit.pm#Assertion_Functions The code reference value within a setup or teardown test case can optionally be named func instead of test for clarity. -Tom