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

Method read_and_strip

test/BoostBuild.py:553–562  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

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

Callers 1

__read_fileMethod · 0.95

Calls 1

glob_fileMethod · 0.95

Tested by

no test coverage detected