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

Method read_and_strip

v2/test/BoostBuild.py:551–560  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

549 return ""
550
551 def read_and_strip(self, name):
552 if not self.glob_file(name):
553 return ""
554 f = open(self.glob_file(name), "rb")
555 lines = f.readlines()
556 f.close()
557 result = "\n".join(x.rstrip() for x in lines)
558 if lines and lines[-1][-1] != "\n":
559 return result + "\n"
560 return result
561
562 def fail_test(self, condition, dump_difference=True, dump_stdio=True,
563 dump_stack=True):

Callers 1

__read_fileMethod · 0.95

Calls 1

glob_fileMethod · 0.95

Tested by

no test coverage detected