MCPcopy Create free account
hub / github.com/gitless-vcs/gitless / test_diff_nonexistent_fp

Method test_diff_nonexistent_fp

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

Source from the content-addressed store, hash-verified

587 self.assertEqual('new contents', hunk.lines[0].content)
588
589 def test_diff_nonexistent_fp(self):
590 self.assertRaises(KeyError, self.curr_b.diff_file, NONEXISTENT_FP)
591 self.assertRaises(
592 KeyError, self.curr_b.diff_file, NONEXISTENT_FP_WITH_SPACE)
593
594 @assert_no_side_effects(TRACKED_FP)
595 def test_empty_diff(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected