Archive-Zip Tests

This document provides some information on writing tests for the Archive::Zip module. Note that the tests have been evolving rather organically over a long time and may contain old-fashioned Perl.

General Guidelines

Constants Provided by Package common

Package common, included by use lib 't'; use common; in a test header, provides the following constants (which are all exported by default):

Functions Provided by Package common

Package common provides the following auxilliary functions (which are all exported by default):

Test Functions Provided by Package common

Package common provides below test functions (which are all exported by default). "Test functions" means that these functions generate valid TAP and could (and should) be used instead of Test::More functions where appropriate.

Note that some of the test functions rely on a particular $Archive::Zip::Errorhandler being in place, so avoid using your own handler unless you know what you are doing.

As usual, specification of the test name is optional.