Skip to content

Conversation

@isacostaf
Copy link
Contributor

This pull request introduce White-Box Tests - Condition Coverage for the getLocalName()
To ensure verification of logical decisions, we applied the Modified Condition/Decision Coverage (MC/DC) method during white-box testing.

Method Tested:
getLocaleName

Class Tested:
OFFProductDTO

Test Location:
OpenNutriTracker/test/unit_test/off_product_dto_test.dart

Class and Method Location:
OpenNutriTracker/lib/features/add_meal/data/dto/off/off_product_dto.dart

Results:
Before this PR, the folder features/add_meal/data/dto/off/ had 0% test coverage. It now has 12.5%.
Specifically, the file features/add_meal/data/dto/off/off_product_dto.dart went from 0% to 72.7% coverage.

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.

1 participant