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

Function diff_lists

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

Source from the content-addressed store, hash-verified

621# #### only in seq 1 : - 3
622# =================================================
623def diff_lists(a, b):
624 mismatchCount = 0
625 d = difflib.Differ()
626 diff = d.compare(a,b)
627
628 for item in diff:
629 result = item[0:1].strip()
630 if len(result) > 0:
631 mismatchCount += 1
632 if '-' in result:
633 logger.debug("#### only in seq 1 : " + item, extra=d)
634 elif '+' in result:
635 logger.debug("#### only in seq 2 : " + item, extra=d)
636
637 return mismatchCount
638

Callers

nothing calls this directly

Calls 1

compareMethod · 0.80

Tested by

no test coverage detected