test: Add various unit tests - #317
Conversation
There was a problem hiding this comment.
Code Review
This pull request expands the test suite for the helperlib module by adding unit tests for ApiException, LogHelper, ValidationHelper, ApiResponse, and HttpRequest, alongside enhancements to the android.util.Log mock and CoroutineAsyncTask tests. The review feedback identifies an incorrect exception expectation in the JSON decoding tests and highlights a potential lifecycle bug in CoroutineAsyncTask where cancellation triggers after task completion. Additionally, it is recommended to replace non-deterministic delays in asynchronous tests with standard coroutine testing utilities to improve reliability.
|



No description provided.