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

Method read

v2/test/BoostBuild.py:532–549  ·  view source on GitHub ↗
(self, name, binary=False)

Source from the content-addressed store, hash-verified

530 return result
531
532 def read(self, name, binary=False):
533 try:
534 if self.toolset:
535 name = name.replace("$toolset", self.toolset + "*")
536 name = self.glob_file(name)
537 openMode = "r"
538 if binary:
539 openMode += "b"
540 else:
541 openMode += "U"
542 f = open(name, openMode)
543 result = f.read()
544 f.close()
545 return result
546 except:
547 annotation("failure", "Could not open '%s'" % name)
548 self.fail_test(1)
549 return ""
550
551 def read_and_strip(self, name):
552 if not self.glob_file(name):

Callers 4

copyMethod · 0.95
expand_toolsetMethod · 0.95
__read_fileMethod · 0.95

Calls 3

glob_fileMethod · 0.95
fail_testMethod · 0.95
annotationFunction · 0.85

Tested by

no test coverage detected