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

Function test_reference_set_sha_prefix

test/test_refs.py:552–556  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

550
551
552def test_reference_set_sha_prefix(testrepo: Repository) -> None:
553 NEW_COMMIT = '5ebeeebb320790caf276b9fc8b24546d63316533'
554 reference = testrepo.lookup_reference('refs/heads/master')
555 reference.set_target(NEW_COMMIT[0:6])
556 assert reference.target == NEW_COMMIT
557
558
559def test_reference_get_type(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

set_targetMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…