MCPcopy Index your code
hub / github.com/Persper/code-analytics / test_rev

Function test_rev

test/test_analytics/test_iterator.py:50–57  ·  view source on GitHub ↗
(ri)

Source from the content-addressed store, hash-verified

48
49
50def test_rev(ri):
51 commits, branch_commits = ri.iter(rev='C', into_branches=True)
52 assert(serialized_messages(commits) == 'C B A')
53 assert(serialized_messages(branch_commits) == '')
54 commits2, branch_commits2 = ri.iter(
55 continue_iter=True, end_commit_sha='D', into_branches=True)
56 assert(serialized_messages(commits2) == 'D')
57 assert(serialized_messages(branch_commits2) == 'G F E J I H L K')
58
59
60def test_iter_twice(ri):

Callers

nothing calls this directly

Calls 2

serialized_messagesFunction · 0.70
iterMethod · 0.45

Tested by

no test coverage detected