Package: perl-Test-Directory (0.052-bp160.1.12)
Perl extension for maintaining test directories
Testing code can involve making sure that files are created and deleted as expected. Doing this manually can be error prone, as it's easy to forget a file, or miss that some unexpected file was added. This module simplifies maintaining test directories by tracking their status as they are modified or tested with this API, making it simple to test both individual files, as well as to verify that there are no missing or unknown files. The idea is to use this API to create a temporary directory and populate an initial set of files. Then, whenever something in the directory is changes, use the test methods to verify that the change happened as expected. At any time, it is simple to verify that the contents of the directory are exactly as expected. Test::Directory implements an object-oriented interface for managing test directories. It tracks which files it knows about (by creating or testing them via its API), and can report if any files were missing or unexpectedly added. There are two flavors of methods for interacting with the directory. _Utility_ methods simply return a value (i.e. the number of files/errors) with no output, while the _Test_ functions use Test::Builder to produce the approriate test results and diagnostics for the test harness. The directory will be automatically cleaned up when the object goes out of scope; see the _clean_ method below for details.
Package information
- Homepage
- [https://metacpan.org/release/Test-Directory]
- License
- Artistic-1.0 OR GPL-1.0-or-later
- Downstream package maintainer
- Unknown: not reported in the indexed source
- Source package
- [perl-Test-Directory]
- Software project
- [perl-Test-Directory]
Versions and downloads for perl-Test-Directory
| Version / release | Architecture / repository | Package size | Installed size | Files | Publisher repository artifact |
|---|---|---|---|---|---|
| 0.052-bp160.1.12leap-16.0 / oss | noarchopenSUSE Leap 16.0 · OSS · multi-architecture | 18 KiB | 18 KiB | list of files | perl-Test-Directory-0.052-bp160.1.12.noarch.rpm |
About these downloads
Each row is recorded package-index metadata for one version, architecture, suite, and repository. Names, URLs, and sizes are source-reported; a link is a potentially mutable retrieval location, not an OpenFactory redistribution claim or proof that OpenFactory retained the artifact bytes.
Dependencies and recommendations for perl-Test-Directory
dep: perl(:MODULE_COMPAT_5.42.0)
Package not available
Package file paths (6)
Paths come from the repository package-file index for the observed builds. They describe archive/package associations, not every file that will exist on a running system after maintainer scripts, alternatives, generated state, diversions, or installation choices.
- /usr/lib/perl5/vendor_perl/5.42.0/Test
- /usr/lib/perl5/vendor_perl/5.42.0/Test/Directory.pm
- /usr/share/doc/packages/perl-Test-Directory
- /usr/share/doc/packages/perl-Test-Directory/Changes
- /usr/share/doc/packages/perl-Test-Directory/README
- /usr/share/man/man3/Test::Directory.3pm.gz
Field source: openSUSE Leap 16.0 OSS
