feat(tests): test coverage is 70.5

This commit is contained in:
misha
2026-01-26 16:38:15 +03:00
parent 92205c09d6
commit 29589ef6fd
49 changed files with 2690 additions and 18 deletions

View File

@@ -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();
});
});
}