MCPcopy Index your code
hub / github.com/gitless-vcs/gitless / __assert_checkout_head

Method __assert_checkout_head

gitless/tests/test_core.py:351–357  ·  view source on GitHub ↗
(self, *fps)

Source from the content-addressed store, hash-verified

349class TestFileCheckout(TestFile):
350
351 def __assert_checkout_head(self, *fps):
352 root = self.repo.root
353 for fp in fps:
354 utils_lib.write_file(fp, contents='contents')
355 self.curr_b.checkout_file(
356 os.path.relpath(fp, root), self.repo.revparse_single('HEAD'))
357 self.assertEqual(TRACKED_FP_CONTENTS_2, utils_lib.read_file(fp))
358
359 @assert_no_side_effects(
360 TRACKED_FP, TRACKED_FP_WITH_SPACE,

Callers 2

test_checkout_headMethod · 0.95

Calls 2

checkout_fileMethod · 0.80
revparse_singleMethod · 0.80

Tested by

no test coverage detected