MCPcopy Create free account
hub / github.com/libgit2/pygit2 / test_parse_diff_bad

Function test_parse_diff_bad

test/test_diff.py:451–462  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

449
450
451def test_parse_diff_bad() -> None:
452 diff = textwrap.dedent(
453 """
454 diff --git a/file1 b/file1
455 old mode 0644
456 new mode 0644
457 @@ -1,1 +1,1 @@
458 -Hi!
459 """
460 )
461 with pytest.raises(pygit2.GitError):
462 pygit2.Diff.parse_diff(diff)
463
464
465def test_diff_blobs(emptyrepo: Repository) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…