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

Function test_describe_strategies

test/test_describe.py:57–67  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

55
56
57def test_describe_strategies(testrepo: Repository) -> None:
58 assert 'heads/master' == testrepo.describe(describe_strategy=DescribeStrategy.ALL)
59
60 testrepo.create_reference(
61 'refs/tags/thetag', '4ec4389a8068641da2d6578db0419484972284c8'
62 )
63 with pytest.raises(KeyError):
64 testrepo.describe()
65 assert 'thetag-2-g2be5719' == testrepo.describe(
66 describe_strategy=DescribeStrategy.TAGS
67 )
68
69
70def test_describe_pattern(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 2

describeMethod · 0.80
create_referenceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…