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 unit test for mapping packets with lower sequence number than the first mapped packet #1439

Closed

Conversation

fippo
Copy link
Contributor

@fippo fippo commented Aug 6, 2024

see #1437 and #1438. Works but why not have a test

@fippo fippo force-pushed the map-late-first branch 5 times, most recently from 7ed8abe to 9a7c0c0 Compare August 6, 2024 04:13
@@ -1400,4 +1400,19 @@ SCENARIO("SeqManager", "[rtc][SeqMananger]")
SeqManager<uint16_t> seqManager(/*initialOutput*/ 1000);
validate(seqManager, inputs);
}

SECTION("map packets prior to first mapped packet")
Copy link
Member

Choose a reason for hiding this comment

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

I fail to see the value that this test adds to the already existing tests? Isn't this already tested in existing tests?

Also, what does "mapped packet" mean? We don't use that terminology anywhere in the source code and in existing tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not covered (or at least not explicitily), does backward wrap-around as a bonus. What terminology do you suggest?

ibc added a commit that referenced this pull request Aug 6, 2024
@ibc
Copy link
Member

ibc commented Aug 6, 2024

Thanks. I've added the corresponding tests in my ongoing PR to test the new feature:

ecbad4c

Let's close this PR.

@ibc ibc closed this Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants