Skip to content

test: Add various unit tests - #317

Merged
itachi1706 merged 1 commit into
masterfrom
add-tests
Apr 2, 2026
Merged

itachi1706 merged 1 commit into
masterfrom
add-tests

Conversation

@itachi1706

Copy link
Copy Markdown
Owner

No description provided.

@itachi1706 itachi1706 self-assigned this Apr 2, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@sonarqubecloud

sonarqubecloud Bot commented Apr 2, 2026

Copy link
Copy Markdown

@itachi1706
itachi1706 enabled auto-merge April 2, 2026 05:01
@itachi1706
itachi1706 merged commit 676b66e into master Apr 2, 2026
8 checks passed
@itachi1706
itachi1706 deleted the add-tests branch April 2, 2026 05:01
@itachi1706 itachi1706 linked an issue Apr 2, 2026 that may be closed by this pull request
@itachi1706 itachi1706 mentioned this pull request Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unit Tests

1 participant