(t *testing.T)
| 10 | } |
| 11 | |
| 12 | func TestFixAndCleanPath(t *testing.T) { |
| 13 | datas := map[string]string{ |
| 14 | "": "/", |
| 15 | ".././": "/", |
| 16 | "../../.../": "/...", |
| 17 | "x//\\y/": "/x/y", |
| 18 | ".././.x/.y/.//..x../..y..": "/.x/.y/..x../..y..", |
| 19 | } |
| 20 | for key, value := range datas { |
| 21 | if FixAndCleanPath(key) != value { |
| 22 | t.Logf("raw %s fix fail", key) |
| 23 | } |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | func TestGetPathHierarchy(t *testing.T) { |
| 28 | testCases := map[string][]string{ |
nothing calls this directly
no test coverage detected