Convert to using Test::More. Provide each test with a description.
authorJames E Keenan <jkeenan@cpan.org>
Mon, 11 Nov 2013 20:11:14 +0000 (21:11 +0100)
committerJames E Keenan <jkeenan@cpan.org>
Sun, 17 Nov 2013 13:46:25 +0000 (14:46 +0100)
commit2a0c00d3b1ecb7d6387a0d33b82acf318b1823bd
tree1abd399956d10d4260759023fe164772b96e2295
parente2aa288a0f563ddb8e6f5bb400a8e1f82e623b4e
Convert to using Test::More. Provide each test with a description.

For: RT #120503.  This entailed:

Replacing each instance of Check() and CheckDie() with appropriate
Test::More functions.

Replacing MkDir() and touch() with mkdir_ok() and create_file_ok() to
create a more Test::More-ish interface; create symlink_ok() to handle
similar circumstances.

Providing those three wrapper subroutines with default descriptions,
but allowing a custom description to be passed as an argument.

Highlighting more important unit tests found at the end of subsections
and blocks by prepending 'COMPLETE:' to their descriptions.

More inline comments to guide future maintainers.

Some repositioning of code in order to narrow the scope of variables.
Replacement of hard tabs with spaces; some regularization of indents
and other code tidying.

No tests were added or removed, so the planned number of tests on a
given platform will be unchanged.

TODO:

Some descriptions still need improvement.

There are quite a few File-Find features mentioned in the POD which
are not referenced at all in this test file.  They need to have new
tests written for them.

Coverage analysis.
ext/File-Find/t/find.t