MCPcopy
hub / github.com/Delgan/loguru / test_flush

Function test_flush

tests/test_add_sinks.py:134–146  ·  view source on GitHub ↗
(rep)

Source from the content-addressed store, hash-verified

132
133@repetitions
134def test_flush(rep):
135 flushed = []
136 out = []
137
138 class A:
139 def write(self, m):
140 out.append(m)
141
142 def flush(self):
143 flushed.append(out[-1])
144
145 log(A(), rep)
146 assert flushed == [expected] * rep
147
148
149def test_file_sink_ascii_encoding(tmp_path):

Callers

nothing calls this directly

Calls 2

logFunction · 0.85
AClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…