Repository navigation
FileSystemStream Issues #943
Description
Activity
- addedstate: needs discussionIssues that need further discussionIssues that need further discussiontype: bugIssues that describe misbehaving functionalityIssues that describe misbehaving functionality
on Feb 9, 2023 Thanks for the hint @JasonBock.
The intention of this class is to wrap the
FileStreambut make it testable. So the interface wraps theFileStreamand in the "normal" usage in production the provided stream should be aFileStream.
Only in the testing wrapper, we will replace it with a different stream for testing purposes.
I agree, that the XML documentation is short and could be improved, but the intention of it wrapping aFileStreamis in essence correct.With your second point I agree completely. The
pathparameter should bestring.A pull request would be welcome!
Reacted by Florian Greinacher- addedtype: enhancementIssues that propose new functionalityIssues that propose new functionalitystate: ready to pickIssues that are ready for being worked onIssues that are ready for being worked onarea: coreIssues that address the core abstractions & the wrappersIssues that address the core abstractions & the wrappersflag: good-first-issueIssues that are good for first time contributorsIssues that are good for first time contributorsand removedtype: bugIssues that describe misbehaving functionalityIssues that describe misbehaving functionalitystate: needs discussionIssues that need further discussionIssues that need further discussion
on Feb 14, 2023 Hi, I am a college student looking trying to get more involved with open source and looking for a first-time "bug fix" and figured I could help out with this! I am a little confused with what XML docs you are referring to. Perhaps a link would help. As for the string issue, it should be
stringas opposed tostring?because you want the user to pass data through the constructor. Is there anything I could help with as far as fixing the documentation or code? Let me know!@ZaffyPuck : The second point was already fixed in #956!
A link to the file is mentioned in the description.- added a commit that references this issue
on Apr 18, 2023 This is addressed in release v19.2.15.
Describe the bug
There's a documentation and API issue with this type. There isn't a way to reproduce this, more that the design should be reviewed.
Wraps the <see cref="FileStream" />, but the wrapped field,_stream, is of typeStream. There's no runtime check to ensure that the stream provided in the constructor is of typeFileStream. This is confusing because the docs state one thing, but the implementation doesn't seem to match that.pathparameter for the constructor is defined asstring?, but the constructor will throw anArgumentNullExceptionifpathis null. This is confusing, as annotating a parameter as nullable means that the method can accept a null value. Ifpathcannot benull, then remove the nullable annotation.