newReader returns an io.ReadCloser instance that reads the data from the specified string |s| and is a no-op when Close() is called.
(s string)
| 230 | // newReader returns an io.ReadCloser instance that reads the data from the specified |
| 231 | // string |s| and is a no-op when Close() is called. |
| 232 | func newReader(s string) io.ReadCloser { |
| 233 | return &testReader{ |
| 234 | bytes.NewReader([]byte(s)), |
| 235 | } |
| 236 | } |