MCPcopy Index your code
hub / github.com/python/cpython / BufferedWriter

Class BufferedWriter

Lib/test/test_unittest/support.py:141–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139
140
141class BufferedWriter:
142 def __init__(self):
143 self.result = ''
144 self.buffer = ''
145
146 def write(self, arg):
147 self.buffer += arg
148
149 def flush(self):
150 self.result += self.buffer
151 self.buffer = ''
152
153 def getvalue(self):
154 return self.result

Callers 9

_run_testMethod · 0.90
runMethod · 0.90
test_NonExitMethod · 0.70
test_ExitMethod · 0.70
test_ExitAsDefaultMethod · 0.70
test_ExitSkippedSuiteMethod · 0.70
test_ExitEmptySuiteMethod · 0.70

Calls

no outgoing calls

Tested by 9

_run_testMethod · 0.72
runMethod · 0.72
test_NonExitMethod · 0.56
test_ExitMethod · 0.56
test_ExitAsDefaultMethod · 0.56
test_ExitSkippedSuiteMethod · 0.56
test_ExitEmptySuiteMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…