752
752
def test_bisect_dirblock(self):
753
753
if compiled_dirstate_helpers_feature.available():
754
from .._dirstate_helpers_pyx import bisect_dirblock
754
from breezy.bzr._dirstate_helpers_pyx import bisect_dirblock
756
from .._dirstate_helpers_py import bisect_dirblock
756
from breezy.bzr._dirstate_helpers_py import bisect_dirblock
757
757
self.assertIs(bisect_dirblock, dirstate.bisect_dirblock)
759
759
def test__bisect_path_left(self):
760
760
if compiled_dirstate_helpers_feature.available():
761
from .._dirstate_helpers_pyx import _bisect_path_left
761
from breezy.bzr._dirstate_helpers_pyx import _bisect_path_left
763
from .._dirstate_helpers_py import _bisect_path_left
763
from breezy.bzr._dirstate_helpers_py import _bisect_path_left
764
764
self.assertIs(_bisect_path_left, dirstate._bisect_path_left)
766
766
def test__bisect_path_right(self):
767
767
if compiled_dirstate_helpers_feature.available():
768
from .._dirstate_helpers_pyx import _bisect_path_right
768
from breezy.bzr._dirstate_helpers_pyx import _bisect_path_right
770
from .._dirstate_helpers_py import _bisect_path_right
770
from breezy.bzr._dirstate_helpers_py import _bisect_path_right
771
771
self.assertIs(_bisect_path_right, dirstate._bisect_path_right)
773
773
def test_lt_by_dirs(self):
774
774
if compiled_dirstate_helpers_feature.available():
775
from .._dirstate_helpers_pyx import lt_by_dirs
775
from ..bzr._dirstate_helpers_pyx import lt_by_dirs
777
from .._dirstate_helpers_py import lt_by_dirs
777
from ..bzr._dirstate_helpers_py import lt_by_dirs
778
778
self.assertIs(lt_by_dirs, dirstate.lt_by_dirs)
780
780
def test__read_dirblocks(self):
781
781
if compiled_dirstate_helpers_feature.available():
782
from .._dirstate_helpers_pyx import _read_dirblocks
782
from breezy.bzr._dirstate_helpers_pyx import _read_dirblocks
784
from .._dirstate_helpers_py import _read_dirblocks
784
from breezy.bzr._dirstate_helpers_py import _read_dirblocks
785
785
self.assertIs(_read_dirblocks, dirstate._read_dirblocks)
787
787
def test_update_entry(self):
788
788
if compiled_dirstate_helpers_feature.available():
789
from .._dirstate_helpers_pyx import update_entry
789
from breezy.bzr._dirstate_helpers_pyx import update_entry
791
from ..dirstate import update_entry
791
from breezy.bzr.dirstate import update_entry
792
792
self.assertIs(update_entry, dirstate.update_entry)
794
794
def test_process_entry(self):
795
795
if compiled_dirstate_helpers_feature.available():
796
from .._dirstate_helpers_pyx import ProcessEntryC
796
from breezy.bzr._dirstate_helpers_pyx import ProcessEntryC
797
797
self.assertIs(ProcessEntryC, dirstate._process_entry)
799
from ..dirstate import ProcessEntryPython
799
from breezy.bzr.dirstate import ProcessEntryPython
800
800
self.assertIs(ProcessEntryPython, dirstate._process_entry)