| 14 | ) |
| 15 | |
| 16 | type BufferCloser struct { |
| 17 | bytes.Buffer |
| 18 | io.Closer |
| 19 | closed atomic.Bool |
| 20 | } |
| 21 | |
| 22 | func (b *BufferCloser) Write(p []byte) (n int, err error) { |
| 23 | if b.closed.Load() { |
nothing calls this directly
no outgoing calls
no test coverage detected