HotShot
HotShot copied to clipboard
[CX_HARDENING] - Audit Network Task Tests
What is this task and why do we need to work on it?
The network task is quite complex, and only features two test cases. We should improve the coverage and determine if there is more work that is necessary to cover the branches. These tests also do not use the new testing framework and, as a result, there should be some effort to bring it up to spec to make maintenance easier.
What work will need to be done to complete this task?
- [ ] - Evaluate the Vid task to determine if enough of the code is covered.
- [ ] - Permute the inputs and verify if the tests still pass.
- [ ] - Clean up and reduce boilerplate within the test file.
- [ ] - Add additional tests for the various cases that were not previously handled.
Some other low-hanging fruit for this test are:
- [ ] - Write tests for each of the conversions (
handle_event
) - [ ] - Write tests to ensure that state updates happen as expected (does it matter what order they arrive in?)
Are there any other details to include?
This one will require some care since this task is not a cookie-cutter as some of the others. This may require multiple PRs.
What are the acceptance criteria to close this issue?
- [ ] - Test is modernized.
- [ ] - New tests added.
- [ ] - All tests pass.
Branch work will be merged to (if not the default branch)
No response