Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

test: added unit test for ValidateAgeLimitUseCase

Hasib Prince requested to merge 333-unit_test_validateagelimit into main

Description

Added unit test for ValidateAgeLimitUseCase and handled error case during calling appdetails API of CleanApk.

Screenshots

Technical details

ValidateAgeLimitUseCase calls appdetails API of CleanApk to fetch age rating data. The error case of this API call was not handled. Now, It will return ResultSumpreme.Error() if API call fails.

Tests

Issues

backlog/-/issues/2112

10 commandments of code reviews

👪 https://gitlab.e.foundation/internal/wiki/-/wikis/mobile-team/guidelines/Code-review

Summary by CodeRabbit

  • New Features

    • Improved app age limit validation by enhancing checks for NSFW content.
  • Tests

    • Added comprehensive test cases for app age limit validation, covering scenarios like parental control settings, NSFW apps, clean apps, and age limits.
Edited by CodeRabbitAI

Merge request reports

Loading