Companinon crate to 'bintest' and 'testcall', implements fixtures and assertions on paths
TestPath
A trait that augements Path for software testing. There are special implementations for 'tempfile::TempDir' which creates temporary directories that get deletes when going out of scope and TempDirCleanup which adds an custom cleanup callback to TempDir.
SubPath
SubPaths refer to pathnames within a TestPath and may not outlive the parent TestPath.
Fixtures
Allow to populate a TestPath with content for testing.
PathAssertions
Check and compare components of a TestPath for validty.
Panics vs. Results
'testpath' is made explicitly for writing tests. To ease this it prefers aborting by panic over error handling. When anything goes wrong the test is aborted and the cause is reported.