forked from eatvio/eatvio_app
feat(tests): test coverage is 70.5
This commit is contained in:
@@ -68,5 +68,47 @@ void main() {
|
||||
showSuccessToast(message);
|
||||
}
|
||||
});
|
||||
|
||||
test('showInfoToast handles empty string', () {
|
||||
showInfoToast('');
|
||||
});
|
||||
|
||||
test('showErrorToast handles empty string', () {
|
||||
showErrorToast('');
|
||||
});
|
||||
|
||||
test('showSuccessToast handles empty string', () {
|
||||
showSuccessToast('');
|
||||
});
|
||||
|
||||
test('showInfoToast handles long messages', () {
|
||||
showInfoToast('A' * 200);
|
||||
});
|
||||
|
||||
test('showErrorToast handles long messages', () {
|
||||
showErrorToast('A' * 200);
|
||||
});
|
||||
|
||||
test('showSuccessToast handles long messages', () {
|
||||
showSuccessToast('A' * 200);
|
||||
});
|
||||
|
||||
test('showInfoToast handles messages with special characters', () {
|
||||
showInfoToast('Message with special chars: !@#\$%^&*()');
|
||||
});
|
||||
|
||||
test('showErrorToast handles messages with special characters', () {
|
||||
showErrorToast('Error with special chars: !@#\$%^&*()');
|
||||
});
|
||||
|
||||
test('showSuccessToast handles messages with special characters', () {
|
||||
showSuccessToast('Success with special chars: !@#\$%^&*()');
|
||||
});
|
||||
|
||||
test('showInternetConnectionToast can be called multiple times', () {
|
||||
showInternetConnectionToast();
|
||||
showInternetConnectionToast();
|
||||
showInternetConnectionToast();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user