Skip to content

Condition Testing - Offproductdto - getlocalname()#238

Open
isacostaf wants to merge 4 commits intosimonoppowa:mainfrom
isacostaf:OFFproductDTO-GetLocalName-ConditionTesting
Open

Condition Testing - Offproductdto - getlocalname()#238
isacostaf wants to merge 4 commits intosimonoppowa:mainfrom
isacostaf:OFFproductDTO-GetLocalName-ConditionTesting

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