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

Method read

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

Source from the content-addressed store, hash-verified

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