Commit 7118b8a
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: #2282
Reviewed-By: Roman Reiss <me@silverwind.io>1 parent 07a88b0 commit 7118b8aCopy full SHA for 7118b8a
File tree
Expand file treeCollapse file tree
2 files changed
+10
-15
lines changedOpen diff view settings
Filter options
- lib
- test/parallel
Expand file treeCollapse file tree
2 files changed
+10
-15
lines changedOpen diff view settings
Collapse file
+1-11Lines changed: 1 addition & 11 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
76 | 76 | |
77 | 77 | |
78 | 78 | |
79 | | - |
| 79 | + |
80 | 80 | |
81 | 81 | |
82 | 82 | |
| ||
386 | 386 | |
387 | 387 | |
388 | 388 | |
389 | | - |
390 | | - |
391 | | - |
392 | 389 | |
393 | 390 | |
394 | 391 | |
| ||
590 | 587 | |
591 | 588 | |
592 | 589 | |
593 | | - |
594 | | - |
595 | | - |
596 | | - |
597 | | - |
598 | | - |
599 | | - |
600 | 590 | |
601 | 591 | |
602 | 592 | |
|
Collapse file
test/parallel/test-path-parse-format.js
Copy file name to clipboardExpand all lines: test/parallel/test-path-parse-format.js+9-4Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
9 | 9 | |
10 | 10 | |
11 | 11 | |
| 12 | + |
12 | 13 | |
13 | 14 | |
14 | 15 | |
| ||
32 | 33 | |
33 | 34 | |
34 | 35 | |
35 | | - |
| 36 | + |
| 37 | + |
36 | 38 | |
37 | 39 | |
38 | 40 | |
| ||
52 | 54 | |
53 | 55 | |
54 | 56 | |
55 | | - |
56 | | - |
57 | 57 | |
58 | 58 | |
59 | 59 | |
| ||
93 | 93 | |
94 | 94 | |
95 | 95 | |
96 | | - |
| 96 | + |
97 | 97 | |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
98 | 103 | |
99 | 104 | |
100 | 105 | |
|
0 commit comments