这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@roidelapluie
Copy link
Member

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 #444

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 <roidelapluie@o11y.eu>
@roidelapluie roidelapluie merged commit 72ed068 into prometheus:main Feb 21, 2023
Copy link
Contributor

@abursavich abursavich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants