Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expfmt: add test cases for TextParser startOfLine error handling
The test cases cover the various scenarios that can occur when the TextParser `startOfLine` method encounters an error. The first subtest ensures that the method handles the `io.EOF` error correctly when the input `io.Reader` is empty. The second subtest uses a custom implementation of `io.Reader` to test that `startOfLine` handles errors other than `io.EOF` correctly. See prometheus#444 Signed-off-by: Julien Pivotto <[email protected]>
- Loading branch information