Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test case for the EOF error with ReadAt #7

Merged
merged 1 commit into from
Sep 2, 2023

Conversation

sapfeer0k
Copy link

@sapfeer0k sapfeer0k commented Sep 1, 2023

As promised, here is the one test case added.

Copy link
Owner

@dguerri dguerri left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

mFile.On("ReadAt", make([]byte, 32), int64(offset)).Return(5, io.EOF).Run(
func(args mock.Arguments) {
data := args.Get(0).([]byte)
// num := args.Get(1).(int64)
Copy link
Owner

Choose a reason for hiding this comment

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

Nit: remove :)

@dguerri dguerri merged commit a3932df into dguerri:main Sep 2, 2023
5 checks passed
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