| WWW-Postini documentation | view source | Contained in the WWW-Postini distribution. |
WWW::Postini::Assert - Simple testing, with exception throwing
use WWW::Postini::Assert; assert(1 == 1, 'One equals one'); # pass assert(2 == 1, 'Two equals one'); # fail
The purpose of this module is to provide a very simple testing mechanism with the ability to throw exception objects on failure.
The function assert() is automatically exported into the current namespace.
Tests for a defined non-zero $value parameter and throws an exception of
class
WWW::Postini::Exception::AssertionFailure
on failure. If $description is provided, it is added to the resulting
exception description.
Peter Guzis, <pguzis@cpan.org>
Copyright (C) 2005 by Peter Guzis
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.4 or, at your option, any later version of Perl 5 you may have available.
Postini, the Postini logo, Postini Perimeter Manager and preEMPT are trademarks, registered trademarks or service marks of Postini, Inc. All other trademarks are the property of their respective owners.
| WWW-Postini documentation | view source | Contained in the WWW-Postini distribution. |