MCPcopy Create free account
hub / github.com/boostorg/build / get_library_name

Function get_library_name

v2/tools/testing.py:191–207  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

189__ln2 = re.compile("/(tools|libs)/(.*)$")
190__ln3 = re.compile("(/status$)")
191def get_library_name(path):
192
193 path = path.replace("\\", "/")
194 match1 = __ln1.match(path)
195 match2 = __ln2.match(path)
196 match3 = __ln3.match(path)
197
198 if match1:
199 return match1.group(2)
200 elif match2:
201 return match2.group(2)
202 elif match3:
203 return ""
204 elif option.get("dump-tests", False, True):
205 # The 'run' rule and others might be used outside boost. In that case,
206 # just return the path, since the 'library name' makes no sense.
207 return path
208
209# Was an XML dump requested?
210__out_xml = option.get("out-xml", False, True)

Callers 1

dump_testFunction · 0.85

Calls 2

matchMethod · 0.80
getMethod · 0.80

Tested by

no test coverage detected