(x, y string)
| 733 | } |
| 734 | |
| 735 | func fileEntryLess(x, y string) bool { |
| 736 | xdir, xelem := split(x) |
| 737 | ydir, yelem := split(y) |
| 738 | |
| 739 | return xdir < ydir || xdir == ydir && xelem < yelem |
| 740 | } |
| 741 | |
| 742 | func split(name string) (dir, elem string) { |
| 743 | if len(name) > 0 && name[len(name)-1] == '/' { |
no test coverage detected
searching dependent graphs…