The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WWW::Postini::Assert - Simple testing, with exception throwing

SYNOPSIS

  use WWW::Postini::Assert;

  assert(1 == 1, 'One equals one'); # pass
  assert(2 == 1, 'Two equals one'); # fail

DESCRIPTION

The purpose of this module is to provide a very simple testing mechanism with the ability to throw exception objects on failure.

EXPORTS

The function assert() is automatically exported into the current namespace.

FUNCTIONS

assert($value)
assert($value,$description)

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.

SEE ALSO

WWW::Postini, WWW::Postini::Exception::AssertionFailure

AUTHOR

Peter Guzis, <pguzis@cpan.org>

COPYRIGHT AND LICENSE

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.