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

Function test_ahead_behind

test/test_repository.py:319–332  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

317
318
319def test_ahead_behind(testrepo: Repository) -> None:
320 ahead, behind = testrepo.ahead_behind(
321 '5ebeeebb320790caf276b9fc8b24546d63316533',
322 '4ec4389a8068641da2d6578db0419484972284c8',
323 )
324 assert 1 == ahead
325 assert 2 == behind
326
327 ahead, behind = testrepo.ahead_behind(
328 '4ec4389a8068641da2d6578db0419484972284c8',
329 '5ebeeebb320790caf276b9fc8b24546d63316533',
330 )
331 assert 2 == ahead
332 assert 1 == behind
333
334
335def test_reset_hard(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

ahead_behindMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…