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

Method test_empty_diff

gitless/tests/test_core.py:595–599  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

593
594 @assert_no_side_effects(TRACKED_FP)
595 def test_empty_diff(self):
596 patch = self.curr_b.diff_file(TRACKED_FP)
597 self.assertEqual(0, len(list(patch.hunks)))
598 self.assertEqual(0, patch.line_stats[1])
599 self.assertEqual(0, patch.line_stats[2])
600
601 def test_diff_basic(self):
602 utils_lib.write_file(TRACKED_FP, contents='new contents')

Callers

nothing calls this directly

Calls 1

diff_fileMethod · 0.80

Tested by

no test coverage detected