MCPcopy Create free account
hub / github.com/apache/kafka / lists_diff_count

Function lists_diff_count

system_test/utils/system_test_utils.py:568–581  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

566# - input lists won't be changed
567# =================================================
568def lists_diff_count(a, b):
569 c = list(b)
570 d = []
571 for item in a:
572 try:
573 c.remove(item)
574 except:
575 d.append(item)
576
577 if len(d) > 0:
578 print "#### Mismatch MessageID"
579 print d
580
581 return len(c) + len(d)
582
583# =================================================
584# subtract_list

Callers

nothing calls this directly

Calls 2

removeMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected