ReadString reads strings from the underlying StringReader and can call the map function associated to the MappedStringReader with that string, then returns the result produced by the map function.
()
| 116 | // map function associated to the MappedStringReader with that string, then |
| 117 | // returns the result produced by the map function. |
| 118 | func (m *MappedStringReader) ReadString() (s string, err error) { |
| 119 | if s, err = m.r.ReadString(); err == nil { |
| 120 | return m.mapFn(s), nil |
| 121 | } |
| 122 | return s, err |
| 123 | } |
| 124 | |
| 125 | // StringReaderFromCmdArgs returns a string reader for reading the arguments |
| 126 | // passed in the command line. If the arguments consists in single hypen "-", |
nothing calls this directly
no test coverage detected