MCPcopy
hub / github.com/Terry-Mao/goim / Flush

Method Flush

pkg/bufio/bufio.go:399–402  ·  view source on GitHub ↗

Flush writes any buffered data to the underlying io.Writer.

()

Source from the content-addressed store, hash-verified

397
398// Flush writes any buffered data to the underlying io.Writer.
399func (b *Writer) Flush() error {
400 err := b.flush()
401 return err
402}
403
404func (b *Writer) flush() error {
405 if b.err != nil {

Callers 15

TestWriteErrorsFunction · 0.95
TestWriterResetFunction · 0.95
BenchmarkWriterEmptyFunction · 0.95
BenchmarkWriterFlushFunction · 0.95
TestWriterFunction · 0.45
TestWriteStringFunction · 0.45
TestWriterReadFromCountsFunction · 0.45
AddMappingMethod · 0.45
ExpireMappingMethod · 0.45
DelMappingMethod · 0.45
KeysByMidsMethod · 0.45
addServerOnlineMethod · 0.45

Calls 1

flushMethod · 0.95

Tested by 7

TestWriteErrorsFunction · 0.76
TestWriterResetFunction · 0.76
BenchmarkWriterEmptyFunction · 0.76
BenchmarkWriterFlushFunction · 0.76
TestWriterFunction · 0.36
TestWriteStringFunction · 0.36
TestWriterReadFromCountsFunction · 0.36