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 additional tests #2

Open
mucaho opened this issue Sep 13, 2014 · 0 comments
Open

Add additional tests #2

mucaho opened this issue Sep 13, 2014 · 0 comments

Comments

@mucaho
Copy link
Owner

mucaho commented Sep 13, 2014

Add additional tests to improve test coverage:

  • investigate if old incoming messages (> 2 min) get dropped correctly, check for their difference with current ids (dataId & transmissionId), if id_diff > RANGE / 4 then drop & test that
  • investigate if there is an off-by-1 error when reaching max retransmit MetaDatas in packet & test that
  • add tests for Controller (data & packet as input)
  • test ReceivedMapControl.removeEntry as its not trivial
  • implement SimpleMapControlTest.testDiscardTimedoutEntries & SimpleMapControlTest.testDiscardEntryTooOften
  • add int to long test to PrimitiveValuesTest
  • check if pendingMapSize & receivedMapSize is empty in DelayedTest
  • test empty retransmits (unidirectional communication)
  • although Protocol's methods are synchronized, the returned collections are not and could be modified in between method calls, test this
  • extend WanEmulator to simulate lag spikes where every packet gets dropped for a period of time
@mucaho mucaho changed the title Add tests Add additional tests Oct 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant