28
28
_dirstate_helpers_py,
30
from brzlib.tests import (
30
from breezy.tests import (
33
from brzlib.tests.test_osutils import dir_reader_scenarios
34
from brzlib.tests.scenarios import (
33
from breezy.tests.test_osutils import dir_reader_scenarios
34
from breezy.tests.scenarios import (
35
35
load_tests_apply_scenarios,
36
36
multiply_scenarios,
38
from brzlib.tests import (
38
from breezy.tests import (
760
760
def test_bisect_dirblock(self):
761
761
if compiled_dirstate_helpers_feature.available():
762
from brzlib._dirstate_helpers_pyx import bisect_dirblock
762
from breezy._dirstate_helpers_pyx import bisect_dirblock
764
from brzlib._dirstate_helpers_py import bisect_dirblock
764
from breezy._dirstate_helpers_py import bisect_dirblock
765
765
self.assertIs(bisect_dirblock, dirstate.bisect_dirblock)
767
767
def test__bisect_path_left(self):
768
768
if compiled_dirstate_helpers_feature.available():
769
from brzlib._dirstate_helpers_pyx import _bisect_path_left
769
from breezy._dirstate_helpers_pyx import _bisect_path_left
771
from brzlib._dirstate_helpers_py import _bisect_path_left
771
from breezy._dirstate_helpers_py import _bisect_path_left
772
772
self.assertIs(_bisect_path_left, dirstate._bisect_path_left)
774
774
def test__bisect_path_right(self):
775
775
if compiled_dirstate_helpers_feature.available():
776
from brzlib._dirstate_helpers_pyx import _bisect_path_right
776
from breezy._dirstate_helpers_pyx import _bisect_path_right
778
from brzlib._dirstate_helpers_py import _bisect_path_right
778
from breezy._dirstate_helpers_py import _bisect_path_right
779
779
self.assertIs(_bisect_path_right, dirstate._bisect_path_right)
781
781
def test_cmp_by_dirs(self):
782
782
if compiled_dirstate_helpers_feature.available():
783
from brzlib._dirstate_helpers_pyx import cmp_by_dirs
783
from breezy._dirstate_helpers_pyx import cmp_by_dirs
785
from brzlib._dirstate_helpers_py import cmp_by_dirs
785
from breezy._dirstate_helpers_py import cmp_by_dirs
786
786
self.assertIs(cmp_by_dirs, dirstate.cmp_by_dirs)
788
788
def test__read_dirblocks(self):
789
789
if compiled_dirstate_helpers_feature.available():
790
from brzlib._dirstate_helpers_pyx import _read_dirblocks
790
from breezy._dirstate_helpers_pyx import _read_dirblocks
792
from brzlib._dirstate_helpers_py import _read_dirblocks
792
from breezy._dirstate_helpers_py import _read_dirblocks
793
793
self.assertIs(_read_dirblocks, dirstate._read_dirblocks)
795
795
def test_update_entry(self):
796
796
if compiled_dirstate_helpers_feature.available():
797
from brzlib._dirstate_helpers_pyx import update_entry
797
from breezy._dirstate_helpers_pyx import update_entry
799
from brzlib.dirstate import update_entry
799
from breezy.dirstate import update_entry
800
800
self.assertIs(update_entry, dirstate.update_entry)
802
802
def test_process_entry(self):
803
803
if compiled_dirstate_helpers_feature.available():
804
from brzlib._dirstate_helpers_pyx import ProcessEntryC
804
from breezy._dirstate_helpers_pyx import ProcessEntryC
805
805
self.assertIs(ProcessEntryC, dirstate._process_entry)
807
from brzlib.dirstate import ProcessEntryPython
807
from breezy.dirstate import ProcessEntryPython
808
808
self.assertIs(ProcessEntryPython, dirstate._process_entry)