MCPcopy Create free account
hub / github.com/Persper/code-analytics / test_inverse_diff

Function test_inverse_diff

test/test_graphs/test_callcommitgraph.py:60–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58
59
60def test_inverse_diff():
61 # view parsing ground truth here
62 # https://github.com/basicthinker/Sexain-MemController/commit/f050c6f6dd4b1d3626574b0d23bb41125f7b75ca
63 adds_dels = (
64 [[7, 31], [27, 3], [44, 1], [50, 2], [70, 1], [77, 2], [99, 2]],
65 [[32, 44], [56, 70]]
66 )
67 inv_truth = (
68 [[65, 13], [79, 15]],
69 [[8, 38], [59, 61], [66, 66], [73, 74], [80, 80], [88, 89], [112, 113]]
70 )
71
72 inv_result = _inverse_diff_result(*adds_dels)
73 assert(inv_truth == inv_result)
74
75
76def assert_graphs_equal(G1, G2):

Callers

nothing calls this directly

Calls 1

_inverse_diff_resultFunction · 0.90

Tested by

no test coverage detected