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

Method error_on_diff

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

Source from the content-addressed store, hash-verified

134 self.file_list = file_list
135
136 def error_on_diff(self, msg):
137 retval = 0
138 if self.error_diff:
139 diff = self.shell.run_single_to_str("git diff")
140 if len(diff) > 0:
141 retval = -1
142 logger.error(diff)
143 logger.error("\n"+msg)
144 return retval
145
146 def run(self):
147 retval = 0

Callers 1

runMethod · 0.95

Calls 1

run_single_to_strMethod · 0.80

Tested by

no test coverage detected