Searched refs:MockWriter (Results 1 – 4 of 4) sorted by relevance
335 struct MockWriter { struct339 impl MockWriter { impl346 impl std::io::Write for MockWriter { implementation360 let (mock_writer, rx) = MockWriter::new(1); in backpressure_exerted()403 let (mock_writer, rx) = MockWriter::new(1); in logs_dropped_if_lossy()444 let (mock_writer, rx) = MockWriter::new(DEFAULT_BUFFERED_LINES_LIMIT); in multi_threaded_writes()
1252 pub(crate) struct MockWriter { struct1256 impl MockWriter { impl1273 impl io::Write for MockWriter { implementation1309 type Writer = MockWriter;1312 MockWriter::new(self.buf.clone()) in make_writer()
1207 use crate::fmt::test::{MockMakeWriter, MockWriter};1256 let make_writer = move || MockWriter::new(buf2.clone()); in custom_writer_closure()1272 let writer = MockWriter::new(buf.clone()); in custom_writer_mutex()
1185 test::{MockMakeWriter, MockWriter},1419 type Writer = MockWriter; in make_writer_based_on_meta()