MCPcopy Index your code
hub / github.com/python/mypy / get_build_steps

Method get_build_steps

mypy/test/testfinegrained.py:191–198  ·  view source on GitHub ↗

Get the number of regular incremental steps to run, from the test source

(self, program_text: str)

Source from the content-addressed store, hash-verified

189 return result
190
191 def get_build_steps(self, program_text: str) -> int:
192 """Get the number of regular incremental steps to run, from the test source"""
193 if not self.use_cache:
194 return 0
195 m = re.search("# num_build_steps: ([0-9]+)$", program_text, flags=re.MULTILINE)
196 if m is not None:
197 return int(m.group(1))
198 return 1
199
200 def perform_step(
201 self,

Callers 1

run_caseMethod · 0.95

Calls 2

intClass · 0.85
groupMethod · 0.80

Tested by

no test coverage detected