Added the path modules test files
authorOwen Waller <o.waller@kulawe.com>
Wed, 10 Sep 2014 17:48:14 +0000 (18:48 +0100)
committerspf13 <steve.francia@gmail.com>
Wed, 5 Nov 2014 00:18:04 +0000 (19:18 -0500)
commite8bbc44ab0a249df4fe618fa22dfce2ed4e50ad3
treea9ba6d3a9a06d84aad45d7a980c367f168d4bcf5
parent6b619d2cd60365e2e8039c3d8018a516d5b4fdde
Added the path modules test files

Added the new path modules test file. This replaces the old
helpers_test.go file.

The currently failing tests are:
TestReplaceExtension
TestFilename
TestFileAndExt
TestGuessSection
TestFindCWD
TestWriteToDisk

In addition the TestSafeWriteToDisk test case is currently disabled.
It will panic if enabled.

In addition there are some minor changes to path.go. They are:
Refactored MakePathToLower to simplify it.
Commented out, pending removal, Sanitize as it appears to be unused.
Fixed the resource leak in UnicodeSanitize

Conflicts:
helpers/path.go
helpers/path.go
helpers/path_test.go [new file with mode: 0644]