Assessment reports>Wasabi Perps>Discussion>Limited test coverage

Limited test coverage

The codebase contains a set of testcases partially covering some of the functionality. However, there are noticeable gaps in test coverage that require additional test cases. For example, the short pool is significantly less covered by negative tests with respect to the long pool. Some of the most fundamental functionality, including openPosition, appears to be tested only at a superficial level, without stressing possible edge cases.

For a more in-depth understanding of these deficiencies, please refer to (), which offers an analysis of some of the missing test cases. Having a robust suite of test cases is crucial to ensure that the code remains resilient and functions correctly, even when subjected to extreme or edge case scenarios. It is important to address these missing tests to maintain high standards of code reliability and integrity.

Zellic © 2024Back to top ↑