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

Skip More Than Available test case in chunked_buff.go is failing #12

Open
ackris opened this issue Sep 11, 2024 · 0 comments
Open

Skip More Than Available test case in chunked_buff.go is failing #12

ackris opened this issue Sep 11, 2024 · 0 comments
Labels
bug Something isn't working unit test label to indicate unit tests

Comments

@ackris
Copy link
Owner

ackris commented Sep 11, 2024

The test case Skip More Than Available in chunked_buff_test.go of utils is failing because the Skip method is not correctly handling the situation where the requested skip size exceeds the available bytes in the buffer. Specifically, it seems that the method is returning the wrong number of bytes skipped.

{
    name:           "Skip More Than Available",
    input:          []byte("Hello"),
    readSize:       0,
    skipSize:       10,
    expectedOutput: []byte(""),
    expectedSkip:   5,
},

@ackris ackris added bug Something isn't working unit test label to indicate unit tests labels Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unit test label to indicate unit tests
Projects
None yet
Development

No branches or pull requests

1 participant