-
Notifications
You must be signed in to change notification settings - Fork 472
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
feat: add basic behavior tests for buffer reader #3862
Conversation
Hi, the TwoWay/ThreeWay/FourWay refactor isn't complete. Would you prefer to merge them first? |
Sorry, I didn't get it. It sounds like I missed something. |
We can merge |
OK, I see. I will add tests first and refactor |
BTW where should I place the |
How about in |
OK 👍 |
3a97cd4
to
da6f9d5
Compare
Cool, It seems easier than I thought. BTW, Should I refactor the tests to like the following? pub async fn test_reader_tail_with_buffer(op: Operator) -> Result<()> {
build_test_reader_tail(test, |op| op.buffer().. ))
} |
Hhh, 1 check failed...🥲 |
18dd3be
to
8ed6557
Compare
8ed6557
to
d2ded98
Compare
The fuzz tests were amazing and helpful! I will rebase this PR after #3865 is merged. |
d2ded98
to
9fb3def
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, I feel like we are going too far.
Sorry for not making the difference between behavior tests and fuzz tests more clearly in advance. (I promise that I will improve this part in the future).
Behavior tests are tests to simulate user's behavior, they're optimized for reading and maintaining. It's by design to have duplicated code. We try our best to make every test case is separate to each other and could be understood without reading other part of code.
And fuzzing test is to reproduce failures produced by fuzzer. They are designed for easily adding and reproducing auto generated cases.
So please keep behavior tests simple like users can write in their real code.
9fb3def
to
378f197
Compare
Ok, I see. I dropped the refactor commit. |
Thanks a lot for the understanding! |
Never mind. 😁 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Add basic behavior tests for buffer reader (p.s. I will rebase this PR after #3865 is merged)
Related
#3735