MCPcopy Create free account
hub / github.com/FastLED/FastLED / make_diff

Function make_diff

ci/run-clang-format.py:102–111  ·  view source on GitHub ↗
(file: str, original: list[str], reformatted: list[str])

Source from the content-addressed store, hash-verified

100
101
102def make_diff(file: str, original: list[str], reformatted: list[str]) -> list[str]:
103 return list(
104 difflib.unified_diff(
105 original,
106 reformatted,
107 fromfile="{}\t(original)".format(file),
108 tofile="{}\t(reformatted)".format(file),
109 n=3,
110 )
111 )
112
113
114class DiffError(Exception):

Callers 1

run_clang_format_diffFunction · 0.85

Calls 2

listClass · 0.85
formatMethod · 0.80

Tested by

no test coverage detected