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

Method __read_file

v2/test/BoostBuild.py:1053–1064  ·  view source on GitHub ↗
(self, name, exact=False)

Source from the content-addressed store, hash-verified

1051 index += 1
1052
1053 def __read_file(self, name, exact=False):
1054 name = self.adjust_names(name)[0]
1055 result = ""
1056 try:
1057 if exact:
1058 result = self.read(name)
1059 else:
1060 result = self.read_and_strip(name).replace("\\", "/")
1061 except (IOError, IndexError):
1062 print "Note: could not open file", name
1063 self.fail_test(1)
1064 return result
1065
1066 def __wait_for_time_change(self, path, touch, last_build_time):
1067 """

Callers 2

expect_content_linesMethod · 0.95
expect_contentMethod · 0.95

Calls 4

adjust_namesMethod · 0.95
readMethod · 0.95
read_and_stripMethod · 0.95
fail_testMethod · 0.95

Tested by

no test coverage detected