OpenNutriTracker
OpenNutriTracker copied to clipboard
Condition Testing - Offproductdto - getlocalname()
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.