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

Function test_describe_abbreviated_size

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

Source from the content-addressed store, hash-verified

94
95
96def test_describe_abbreviated_size(testrepo: Repository) -> None:
97 add_tag(testrepo, 'thetag', '4ec4389a8068641da2d6578db0419484972284c8')
98 assert 'thetag-2-g2be5719152d4f82c' == testrepo.describe(abbreviated_size=16)
99 assert 'thetag' == testrepo.describe(abbreviated_size=0)
100
101
102def test_describe_long_format(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 2

add_tagFunction · 0.85
describeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…