(s string)
| 41 | } |
| 42 | |
| 43 | func newCloseOnCloseReader(s string) *closeOnCloseReader { |
| 44 | return &closeOnCloseReader{r: strings.NewReader(s)} |
| 45 | } |
| 46 | |
| 47 | func (c *closeOnCloseReader) Read(p []byte) (int, error) { |
| 48 | c.mu.Lock() |
no outgoing calls
no test coverage detected