示例#1
0
 def _do_test_sorted_tree_items_name_order(self, sorted_tree_items):
     self.assertEqual([
       TreeEntry('a', stat.S_IFDIR,
                 'd80c186a03f423a81b39df39dc87fd269736ca86'),
       TreeEntry('a.c', 0100755, 'd80c186a03f423a81b39df39dc87fd269736ca86'),
       TreeEntry('a/c', stat.S_IFDIR,
                 'd80c186a03f423a81b39df39dc87fd269736ca86'),
       ], list(sorted_tree_items(_TREE_ITEMS, True)))
示例#2
0
 def _do_test_sorted_tree_items_name_order(self, sorted_tree_items):
     self.assertEqual([
       TreeEntry('a', stat.S_IFDIR,
                 'd80c186a03f423a81b39df39dc87fd269736ca86'),
       TreeEntry('a.c', 0o100755, 'd80c186a03f423a81b39df39dc87fd269736ca86'),
       TreeEntry('a/c', stat.S_IFDIR,
                 'd80c186a03f423a81b39df39dc87fd269736ca86'),
       ], list(sorted_tree_items(_TREE_ITEMS, True)))
示例#3
0
 def do_sort(entries):
     return list(sorted_tree_items(entries, False))
示例#4
0
 def do_sort(entries):
     return list(sorted_tree_items(entries, False))