- OBJECT METHODS
- CLASS METHODS
- ALSO SEE
- COPYRIGHT & LICENSE
Acme::PETEK::Testkit - Perl module codebase for Tester's Toolkit
This Perl module is intended to be a collection of sample code for the Tester's Toolkit presentation at YAPC::NA 2005 by the author.
use Acme::PETEK::Testkit; my $c = Acme::PETEK::Testkit->new; $c->incr;
Creates a new
Acme::PETEK::Testkit object, which will be used for the object interface below.
Resets the value of the stored counter, optionally setting it to $int.
Increment the counter by 1. If
$int is provided, increment by that. Returns the current value of the counter.
Decrement the counter by 1. If
$int is provided, decrement by that. Returns the current value of the counter.
Returns the current value of the counter.
Returns "positive" or "negative" based on the value of the counter.
Adds the two integers together and returns the result.
Subtracts the second integer from the first and returns the result.
Fix 'em yourself! :-)
Slides from the presentation are available at http://www.bsod.net/~petek/slides/.
Copyright 2005 Pete Krawczyk, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
This library has also been released under a Creative Commons license at the request of the YAPC::NA 2005 organizers. See http://creativecommons.org/licenses/by/2.0/ca/ for more information; in short, please give credit to the author should you use this code elsewhere.