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

Function test_analyzer_master_only

test/test_analytics/test_analyzer.py:29–123  ·  view source on GitHub ↗
(az)

Source from the content-addressed store, hash-verified

27
28@pytest.mark.asyncio
29async def test_analyzer_master_only(az):
30 await az.analyze(from_beginning=True)
31 ccgraph = az.get_graph()
32
33 history_truth = {
34 'K': {
35 'display': {'adds': 0, 'dels': 5}
36 },
37 'F': {
38 'display': {'adds': 14, 'dels': 0},
39 'count': {'adds': 12, 'dels': 0}
40 },
41 'E': {
42 'append': {'adds': 29, 'dels': 0},
43 'add': {'adds': 11, 'dels': 0}
44 },
45 'D': {
46 'str_replace': {'adds': 26, 'dels': 0}
47 },
48 # TODO: fix \No newline at the end of file
49 'C': {
50 'str_append_chr': {'adds': 30, 'dels': 4},
51 'str_equals': {'adds': 0, 'dels': 1}
52 },
53 # Commit `B` is an example of imperfect diff,
54 # it removes `str_append` and adds a new function `str_append_chr`
55 # but because they are too similar,
56 # diff doesn't separate these changes into two chunks
57 # please see here: https://github.com/UltimateBeaver/test_feature_branch/commit/caaac10f604ea7ac759c2147df8fb2b588ee2a27
58 'B': {
59 'str_append': {'adds': 6, 'dels': 3},
60 'str_append_chr': {'adds': 3, 'dels': 2},
61 'str_equals': {'adds': 11, 'dels': 0}
62 },
63 'A': {
64 'str_append': {'adds': 7, 'dels': 0},
65 'str_len': {'adds': 6, 'dels': 0}
66 },
67
68 # # branch J from commit A, merge back through F
69 # 'J': {
70 # 'count': {'adds': 12, 'dels': 0},
71 # 'display': {'adds': 14, 'dels': 0}
72 # },
73
74 # # TODO: fix \No newline at the end of file
75 # # branch G from commit B, merge back through D
76 # 'G': {
77 # 'str_equals': {'adds': 0, 'dels': 1},
78 # 'str_replace': {'adds': 26, 'dels': 0}
79 # },
80
81 # # branch H from commit D, merge back through E
82 # 'H': {
83 # 'add': {'adds': 16, 'dels': 0},
84 # 'append': {'adds': 12, 'dels': 0},
85 # 'insert': {'adds': 25, 'dels': 0}
86 # },

Callers

nothing calls this directly

Calls 6

commitsMethod · 0.80
nodesMethod · 0.80
itemsMethod · 0.80
edgesMethod · 0.80
analyzeMethod · 0.45
get_graphMethod · 0.45

Tested by

no test coverage detected