path: remove dead code in favor of unit tests
authorNathan Woltman <nwoltman@outlook.com>
Fri, 31 Jul 2015 21:47:49 +0000 (17:47 -0400)
committerRoman Reiss <me@silverwind.io>
Sun, 9 Aug 2015 10:29:01 +0000 (12:29 +0200)
commit2db57bdecc9a0c3cedbd3883d9ee3e8a20232608
tree6ddcf70e24566ffc4ac647c1380a63b9d329b38a
parentb0dd3bf499083214023da534e6cd0989f57dbecd
path: remove dead code in favor of unit tests

Remove dead code paths that are created by assertions that will never
trigger. They may only trigger if either the `splitDeviceRe` or
`splitPathRe` regular expressions are modified. If at some point they
are modified, current unit tests will catch most of the resulting
errors and this commit adds extra tests to catch the remaining errors.

PR-URL: https://github.com/nodejs/io.js/pull/2282
Reviewed-By: Roman Reiss <me@silverwind.io>
lib/path.js
test/parallel/test-path-parse-format.js