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

Added ability to set Position on streams created with OpenRead() #16083

Merged

Conversation

seanmcc-msft
Copy link
Member

@seanmcc-msft seanmcc-msft commented Oct 19, 2020

Resolves #16055

@ghost ghost added the Storage Storage Service (Queues, Blobs, Files) label Oct 19, 2020
Comment on lines +1509 to +1517
[Test]
// lower position within _buffer
[TestCase(400)]
// higher positiuon within _buffer
[TestCase(500)]
// lower position below _buffer
[TestCase(250)]
// higher position above _buffer
[TestCase(550)]
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add test cases for what happens if we go out of bound ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Will do before I merge.

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually we already have Seek() tests for these cases, and we are just calling into Seek(). I don't think it is necessary.

@seanmcc-msft seanmcc-msft merged commit 1891cfc into Azure:master Oct 28, 2020
annelo-msft pushed a commit to annelo-msft/azure-sdk-for-net that referenced this pull request Feb 17, 2021
@seanmcc-msft seanmcc-msft deleted the feature/storage/openReadSetPosition branch August 17, 2021 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LazyLoadingReadOnlyStream.Position setter not implemented while Seek is
3 participants