Acme::PETEK::Testkit - Perl module codebase for Tester's Toolkit
Version 1.00
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.
Acme::PETEK::Testkit
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.
$int
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.
Pete Krawczyk, <petek@cpan.org>
<petek@cpan.org>
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.
To install Acme::PETEK::Testkit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Acme::PETEK::Testkit
CPAN shell
perl -MCPAN -e shell install Acme::PETEK::Testkit
For more information on module installation, please visit the detailed CPAN module installation guide.