PrePAN

Sign in to PrePAN

Test2::Tools::Path Test tools for checking paths

Author
torbjorn@github
Date
URL
Status
In Review
Good

Synopsis

use Test2::V0;
use Test2::Tools::Path;

file_exists "my/file.ttx", "my important file exists"

like \@array_of_files,
    array {
        all_items file_exists
    }, 
    "lo and behold, all fils exist";

Description

Pretty self explanatory

A set of tools for testing paths.

Should also include:

  • file_exists
  • file_readable
  • file_writable

same with dir:

  • dir_exists
  • dir_writable (has w)
  • dir_accesible (has r and x) #?

And all of the above with '!'

Comments

This is very close to my Test::File module. Would you like to take over that module?

Please sign up to post a review.