MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / error_on_diff

Method error_on_diff

scripts/format_code.py:208–216  ·  view source on GitHub ↗
(self, msg)

Source from the content-addressed store, hash-verified

206 self.error_diff=error_diff
207
208 def error_on_diff(self, msg):
209 retval = 0
210 if self.error_diff:
211 diff = self.shell.run_single_to_str("git diff")
212 if len(diff) > 0:
213 retval = -1
214 logger.error(diff)
215 logger.error("\n"+msg)
216 return retval
217
218 def run(self):
219 if len(self.files) < 1:

Callers 1

runMethod · 0.95

Calls 1

run_single_to_strMethod · 0.80

Tested by

no test coverage detected