TF-4136 Apply early exit to prevent string operation in log
This commit is contained in:
@@ -5,7 +5,6 @@ import 'package:core/presentation/resources/image_paths.dart';
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/utils/app_toast.dart';
|
||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||
import 'package:core/utils/application_manager.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/account/account.dart';
|
||||
@@ -69,7 +68,6 @@ class SomeOtherException extends RemoteException {}
|
||||
MockSpec<ImagePaths>(),
|
||||
MockSpec<ResponsiveUtils>(),
|
||||
MockSpec<Uuid>(),
|
||||
MockSpec<ApplicationManager>(),
|
||||
MockSpec<ToastManager>(),
|
||||
MockSpec<TwakeAppManager>(),
|
||||
])
|
||||
@@ -88,7 +86,6 @@ void main() {
|
||||
late MockImagePaths mockImagePaths;
|
||||
late MockResponsiveUtils mockResponsiveUtils;
|
||||
late MockUuid mockUuid;
|
||||
late MockApplicationManager mockApplicationManager;
|
||||
late MockToastManager mockToastManager;
|
||||
late MockTwakeAppManager mockTwakeAppManager;
|
||||
|
||||
@@ -104,7 +101,6 @@ void main() {
|
||||
mockImagePaths = MockImagePaths();
|
||||
mockResponsiveUtils = MockResponsiveUtils();
|
||||
mockUuid = MockUuid();
|
||||
mockApplicationManager = MockApplicationManager();
|
||||
mockToastManager = MockToastManager();
|
||||
mockTwakeAppManager = MockTwakeAppManager();
|
||||
|
||||
@@ -123,7 +119,6 @@ void main() {
|
||||
Get.put<ImagePaths>(mockImagePaths);
|
||||
Get.put<ResponsiveUtils>(mockResponsiveUtils);
|
||||
Get.put<Uuid>(mockUuid);
|
||||
Get.put<ApplicationManager>(mockApplicationManager);
|
||||
Get.put<ToastManager>(mockToastManager);
|
||||
Get.put<TwakeAppManager>(mockTwakeAppManager);
|
||||
Get.testMode = true;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import 'package:core/utils/application_manager.dart';
|
||||
import 'package:dartz/dartz.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:http_parser/http_parser.dart';
|
||||
@@ -8,9 +7,9 @@ import 'package:jmap_dart_client/jmap/identities/identity.dart';
|
||||
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
||||
import 'package:jmap_dart_client/jmap/mail/email/email_address.dart';
|
||||
import 'package:jmap_dart_client/jmap/mail/email/email_body_part.dart';
|
||||
import 'package:model/email/attachment.dart';
|
||||
import 'package:mockito/annotations.dart';
|
||||
import 'package:mockito/mockito.dart';
|
||||
import 'package:model/email/attachment.dart';
|
||||
import 'package:model/email/email_action_type.dart';
|
||||
import 'package:tmail_ui_user/features/composer/data/datasource/composer_datasource.dart';
|
||||
import 'package:tmail_ui_user/features/composer/data/repository/composer_repository_impl.dart';
|
||||
@@ -25,7 +24,6 @@ import 'composer_repository_impl_test.mocks.dart';
|
||||
AttachmentUploadDataSource,
|
||||
ComposerDataSource,
|
||||
HtmlDataSource,
|
||||
ApplicationManager,
|
||||
Uuid,
|
||||
CreateEmailRequest,
|
||||
Session,
|
||||
@@ -37,7 +35,6 @@ void main() {
|
||||
late MockAttachmentUploadDataSource mockAttachmentUploadDataSource;
|
||||
late MockComposerDataSource mockComposerDataSource;
|
||||
late MockHtmlDataSource mockHtmlDataSource;
|
||||
late MockApplicationManager mockApplicationManager;
|
||||
late MockUuid mockUuid;
|
||||
late MockCreateEmailRequest mockCreateEmailRequest;
|
||||
late MockSession mockSession;
|
||||
@@ -47,7 +44,6 @@ void main() {
|
||||
mockAttachmentUploadDataSource = MockAttachmentUploadDataSource();
|
||||
mockComposerDataSource = MockComposerDataSource();
|
||||
mockHtmlDataSource = MockHtmlDataSource();
|
||||
mockApplicationManager = MockApplicationManager();
|
||||
mockUuid = MockUuid();
|
||||
mockCreateEmailRequest = MockCreateEmailRequest();
|
||||
mockSession = MockSession();
|
||||
@@ -67,7 +63,6 @@ void main() {
|
||||
mockAttachmentUploadDataSource,
|
||||
mockComposerDataSource,
|
||||
mockHtmlDataSource,
|
||||
mockApplicationManager,
|
||||
mockUuid,
|
||||
);
|
||||
});
|
||||
@@ -81,7 +76,6 @@ void main() {
|
||||
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACklEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==';
|
||||
const emailContentWithBase64 = '<p>Hello <img src="$base64Image" alt="test image"></p>';
|
||||
const emailContentWithCid = '<p>Hello <img src="cid:unique-cid" alt="test image"></p>';
|
||||
const userAgent = 'TestUserAgent';
|
||||
const partIdValue = 'part-id-123';
|
||||
final inlineAttachments = {
|
||||
'unique-cid': Attachment(name: 'test.png'),
|
||||
@@ -115,9 +109,6 @@ void main() {
|
||||
when(mockHtmlDataSource.removeCollapsedExpandedSignatureEffect(emailContent: emailContentWithCid))
|
||||
.thenAnswer((_) async => emailContentWithCid);
|
||||
|
||||
when(mockApplicationManager.generateApplicationUserAgent())
|
||||
.thenAnswer((_) async => userAgent);
|
||||
|
||||
when(mockUuid.v1()).thenReturn(partIdValue);
|
||||
|
||||
// Act
|
||||
@@ -142,7 +133,6 @@ void main() {
|
||||
() async {
|
||||
// Arrange
|
||||
const emailContentWithBase64 = '<p>Hello <img src="data:image/png;base64,abc123" alt="test"></p>';
|
||||
const userAgent = 'TestUserAgent';
|
||||
const partIdValue = 'part-id-123';
|
||||
final inlineAttachments = {
|
||||
'cid-1': Attachment(name: 'test.png'),
|
||||
@@ -173,9 +163,6 @@ void main() {
|
||||
when(mockHtmlDataSource.removeCollapsedExpandedSignatureEffect(emailContent: emailContentWithBase64))
|
||||
.thenAnswer((_) async => emailContentWithBase64);
|
||||
|
||||
when(mockApplicationManager.generateApplicationUserAgent())
|
||||
.thenAnswer((_) async => userAgent);
|
||||
|
||||
when(mockUuid.v1()).thenReturn(partIdValue);
|
||||
|
||||
// Act
|
||||
@@ -197,7 +184,6 @@ void main() {
|
||||
'generateEmail should process it correctly and return a valid email',
|
||||
() async {
|
||||
const plainEmailContent = '<p>Hello, this is a simple email</p>';
|
||||
const userAgent = 'TestUserAgent';
|
||||
const partIdValue = 'part-id-123';
|
||||
final attachments = [Attachment(name: 'test.png')];
|
||||
final emailBodyParts = {
|
||||
@@ -228,9 +214,6 @@ void main() {
|
||||
when(mockHtmlDataSource.removeCollapsedExpandedSignatureEffect(emailContent: plainEmailContent))
|
||||
.thenAnswer((_) async => plainEmailContent);
|
||||
|
||||
when(mockApplicationManager.generateApplicationUserAgent())
|
||||
.thenAnswer((_) async => userAgent);
|
||||
|
||||
when(mockUuid.v1()).thenReturn(partIdValue);
|
||||
|
||||
final result = await repository.generateEmail(mockCreateEmailRequest);
|
||||
|
||||
@@ -4,7 +4,6 @@ import 'package:core/presentation/state/success.dart';
|
||||
import 'package:core/presentation/utils/app_toast.dart';
|
||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||
import 'package:core/presentation/views/button/tmail_button_widget.dart';
|
||||
import 'package:core/utils/application_manager.dart';
|
||||
import 'package:core/utils/platform_info.dart';
|
||||
import 'package:dartz/dartz.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -167,7 +166,6 @@ class MockMailboxDashBoardController extends Mock implements MailboxDashBoardCon
|
||||
MockSpec<ImagePaths>(),
|
||||
MockSpec<ResponsiveUtils>(),
|
||||
MockSpec<Uuid>(),
|
||||
MockSpec<ApplicationManager>(),
|
||||
MockSpec<ToastManager>(),
|
||||
MockSpec<TwakeAppManager>(),
|
||||
|
||||
@@ -211,7 +209,6 @@ void main() {
|
||||
late MockDeleteAuthorityOidcInteractor mockDeleteAuthorityOidcInteractor;
|
||||
late MockAppToast mockAppToast;
|
||||
late MockUuid mockUuid;
|
||||
late MockApplicationManager mockApplicationManager;
|
||||
late MockToastManager mockToastManager;
|
||||
late MockTwakeAppManager mockTwakeAppManager;
|
||||
|
||||
@@ -257,7 +254,6 @@ void main() {
|
||||
mockDeleteAuthorityOidcInteractor = MockDeleteAuthorityOidcInteractor();
|
||||
mockAppToast = MockAppToast();
|
||||
mockUuid = MockUuid();
|
||||
mockApplicationManager = MockApplicationManager();
|
||||
mockToastManager = MockToastManager();
|
||||
mockTwakeAppManager = MockTwakeAppManager();
|
||||
|
||||
@@ -276,7 +272,6 @@ void main() {
|
||||
Get.put<ImagePaths>(ImagePaths());
|
||||
Get.put<ResponsiveUtils>(ResponsiveUtils());
|
||||
Get.put<Uuid>(mockUuid);
|
||||
Get.put<ApplicationManager>(mockApplicationManager);
|
||||
Get.put<ToastManager>(mockToastManager);
|
||||
Get.put<TwakeAppManager>(mockTwakeAppManager);
|
||||
|
||||
|
||||
@@ -92,7 +92,6 @@ const fallbackGenerators = {
|
||||
MockSpec<MaybeCalendarEventInteractor>(),
|
||||
MockSpec<RejectCalendarEventInteractor>(),
|
||||
MockSpec<PrintUtils>(),
|
||||
MockSpec<ApplicationManager>(),
|
||||
MockSpec<ToastManager>(),
|
||||
MockSpec<CalendarEventDataSource>(),
|
||||
MockSpec<DioClient>(),
|
||||
@@ -123,7 +122,6 @@ void main() {
|
||||
final uuid = MockUuid();
|
||||
final printEmailInteractor = MockPrintEmailInteractor();
|
||||
final printUtils = MockPrintUtils();
|
||||
final applicationManager = MockApplicationManager();
|
||||
final mockToastManager = MockToastManager();
|
||||
final mockTwakeAppManager = MockTwakeAppManager();
|
||||
|
||||
@@ -159,7 +157,6 @@ void main() {
|
||||
Get.put<ResponsiveUtils>(responsiveUtils);
|
||||
Get.put<Uuid>(uuid);
|
||||
Get.put<PrintUtils>(printUtils);
|
||||
Get.put<ApplicationManager>(applicationManager);
|
||||
Get.put<ToastManager>(mockToastManager);
|
||||
Get.put<TwakeAppManager>(mockTwakeAppManager);
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:core/presentation/utils/app_toast.dart';
|
||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||
import 'package:core/utils/application_manager.dart';
|
||||
import 'package:dartz/dartz.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:get/get.dart';
|
||||
@@ -62,7 +61,6 @@ import 'home_controller_test.mocks.dart';
|
||||
MockSpec<GetOidcUserInfoInteractor>(),
|
||||
MockSpec<CachingManager>(),
|
||||
MockSpec<LanguageCacheManager>(),
|
||||
MockSpec<ApplicationManager>(),
|
||||
MockSpec<ToastManager>(),
|
||||
MockSpec<TwakeAppManager>(),
|
||||
])
|
||||
@@ -95,7 +93,6 @@ void main() {
|
||||
late MockImagePaths mockImagePaths;
|
||||
late MockResponsiveUtils mockResponsiveUtils;
|
||||
late MockUuid mockUuid;
|
||||
late MockApplicationManager mockApplicationManager;
|
||||
late MockToastManager mockToastManager;
|
||||
late MockTwakeAppManager mockTwakeAppManager;
|
||||
|
||||
@@ -126,7 +123,6 @@ void main() {
|
||||
mockImagePaths = MockImagePaths();
|
||||
mockResponsiveUtils = MockResponsiveUtils();
|
||||
mockUuid = MockUuid();
|
||||
mockApplicationManager = MockApplicationManager();
|
||||
mockToastManager = MockToastManager();
|
||||
mockTwakeAppManager = MockTwakeAppManager();
|
||||
|
||||
@@ -150,7 +146,6 @@ void main() {
|
||||
Get.put<ImagePaths>(mockImagePaths);
|
||||
Get.put<ResponsiveUtils>(mockResponsiveUtils);
|
||||
Get.put<Uuid>(mockUuid);
|
||||
Get.put<ApplicationManager>(mockApplicationManager);
|
||||
Get.put<ToastManager>(mockToastManager);
|
||||
Get.put<TwakeAppManager>(mockTwakeAppManager);
|
||||
Get.testMode = true;
|
||||
|
||||
@@ -4,10 +4,9 @@ import 'package:core/data/network/download/download_client.dart';
|
||||
import 'package:core/presentation/resources/image_paths.dart';
|
||||
import 'package:core/presentation/utils/app_toast.dart';
|
||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||
import 'package:core/utils/application_manager.dart';
|
||||
import 'package:core/utils/file_utils.dart';
|
||||
import 'package:core/utils/platform_info.dart';
|
||||
import 'package:dartz/dartz.dart' hide State;
|
||||
import 'package:core/utils/file_utils.dart';
|
||||
import 'package:flutter/widgets.dart' hide State;
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:get/get.dart';
|
||||
@@ -69,7 +68,6 @@ import 'identity_creator_controller_test.mocks.dart';
|
||||
MockSpec<ImagePaths>(),
|
||||
MockSpec<ResponsiveUtils>(),
|
||||
MockSpec<Uuid>(),
|
||||
MockSpec<ApplicationManager>(),
|
||||
MockSpec<ToastManager>(),
|
||||
MockSpec<TwakeAppManager>(),
|
||||
// Identity creator controller mockspecs
|
||||
@@ -115,7 +113,6 @@ void main() {
|
||||
late MockImagePaths mockImagePaths;
|
||||
late MockResponsiveUtils mockResponsiveUtils;
|
||||
late MockUuid mockUuid;
|
||||
late MockApplicationManager mockApplicationManager;
|
||||
late MockToastManager mockToastManager;
|
||||
late MockTwakeAppManager mockTwakeAppManager;
|
||||
|
||||
@@ -132,7 +129,6 @@ void main() {
|
||||
mockImagePaths = MockImagePaths();
|
||||
mockResponsiveUtils = MockResponsiveUtils();
|
||||
mockUuid = MockUuid();
|
||||
mockApplicationManager = MockApplicationManager();
|
||||
mockToastManager = MockToastManager();
|
||||
mockTwakeAppManager = MockTwakeAppManager();
|
||||
|
||||
@@ -151,7 +147,6 @@ void main() {
|
||||
Get.put<ImagePaths>(mockImagePaths);
|
||||
Get.put<ResponsiveUtils>(mockResponsiveUtils);
|
||||
Get.put<Uuid>(mockUuid);
|
||||
Get.put<ApplicationManager>(mockApplicationManager);
|
||||
Get.put<ToastManager>(mockToastManager);
|
||||
Get.put<TwakeAppManager>(mockTwakeAppManager);
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ import 'package:core/data/network/config/dynamic_url_interceptors.dart';
|
||||
import 'package:core/presentation/resources/image_paths.dart';
|
||||
import 'package:core/presentation/utils/app_toast.dart';
|
||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||
import 'package:core/utils/application_manager.dart';
|
||||
import 'package:flutter_dotenv/flutter_dotenv.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:get/get.dart';
|
||||
@@ -82,7 +81,6 @@ import 'login_controller_test.mocks.dart';
|
||||
MockSpec<GetOidcUserInfoInteractor>(),
|
||||
MockSpec<CachingManager>(),
|
||||
MockSpec<LanguageCacheManager>(),
|
||||
MockSpec<ApplicationManager>(),
|
||||
MockSpec<ToastManager>(),
|
||||
MockSpec<TwakeAppManager>(),
|
||||
])
|
||||
@@ -117,7 +115,6 @@ void main() {
|
||||
late MockImagePaths mockImagePaths;
|
||||
late MockResponsiveUtils mockResponsiveUtils;
|
||||
late MockUuid mockUuid;
|
||||
late MockApplicationManager mockApplicationManager;
|
||||
late MockToastManager mockToastManager;
|
||||
late MockTwakeAppManager mockTwakeAppManager;
|
||||
|
||||
@@ -158,7 +155,6 @@ void main() {
|
||||
mockImagePaths = MockImagePaths();
|
||||
mockResponsiveUtils = MockResponsiveUtils();
|
||||
mockUuid = MockUuid();
|
||||
mockApplicationManager = MockApplicationManager();
|
||||
mockToastManager = MockToastManager();
|
||||
mockTwakeAppManager = MockTwakeAppManager();
|
||||
|
||||
@@ -181,7 +177,6 @@ void main() {
|
||||
Get.put<ImagePaths>(mockImagePaths);
|
||||
Get.put<ResponsiveUtils>(mockResponsiveUtils);
|
||||
Get.put<Uuid>(mockUuid);
|
||||
Get.put<ApplicationManager>(mockApplicationManager);
|
||||
Get.put<ToastManager>(mockToastManager);
|
||||
Get.put<TwakeAppManager>(mockTwakeAppManager);
|
||||
Get.testMode = true;
|
||||
|
||||
+1
-6
@@ -2,7 +2,6 @@ import 'package:core/data/network/config/dynamic_url_interceptors.dart';
|
||||
import 'package:core/presentation/resources/image_paths.dart';
|
||||
import 'package:core/presentation/utils/app_toast.dart';
|
||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||
import 'package:core/utils/application_manager.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:get/get.dart';
|
||||
@@ -12,6 +11,7 @@ import 'package:jmap_dart_client/jmap/mail/mailbox/mailbox.dart';
|
||||
import 'package:mockito/annotations.dart';
|
||||
import 'package:mockito/mockito.dart';
|
||||
import 'package:model/mailbox/presentation_mailbox.dart';
|
||||
import 'package:tmail_ui_user/features/base/model/filter_filter.dart';
|
||||
import 'package:tmail_ui_user/features/caching/caching_manager.dart';
|
||||
import 'package:tmail_ui_user/features/composer/domain/usecases/get_autocomplete_interactor.dart';
|
||||
import 'package:tmail_ui_user/features/login/data/network/interceptors/authorization_interceptors.dart';
|
||||
@@ -24,7 +24,6 @@ import 'package:tmail_ui_user/features/mailbox_dashboard/domain/usecases/store_e
|
||||
import 'package:tmail_ui_user/features/mailbox_dashboard/presentation/controller/advanced_filter_controller.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox_dashboard/presentation/controller/mailbox_dashboard_controller.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox_dashboard/presentation/controller/search_controller.dart';
|
||||
import 'package:tmail_ui_user/features/base/model/filter_filter.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox_dashboard/presentation/model/search/email_receive_time_type.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox_dashboard/presentation/model/search/email_sort_order_type.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox_dashboard/presentation/model/search/search_email_filter.dart';
|
||||
@@ -57,7 +56,6 @@ const fallbackGenerators = {
|
||||
MockSpec<ImagePaths>(),
|
||||
MockSpec<ResponsiveUtils>(),
|
||||
MockSpec<Uuid>(),
|
||||
MockSpec<ApplicationManager>(),
|
||||
MockSpec<ToastManager>(),
|
||||
MockSpec<TwakeAppManager>(),
|
||||
// Advanced filter controller mock specs
|
||||
@@ -96,7 +94,6 @@ void main() {
|
||||
late MockImagePaths mockImagePaths;
|
||||
late MockResponsiveUtils mockResponsiveUtils;
|
||||
late MockUuid mockUuid;
|
||||
late MockApplicationManager mockApplicationManager;
|
||||
late MockToastManager mockToastManager;
|
||||
late MockTwakeAppManager mockTwakeAppManager;
|
||||
|
||||
@@ -114,7 +111,6 @@ void main() {
|
||||
mockImagePaths = MockImagePaths();
|
||||
mockResponsiveUtils = MockResponsiveUtils();
|
||||
mockUuid = MockUuid();
|
||||
mockApplicationManager = MockApplicationManager();
|
||||
mockToastManager = MockToastManager();
|
||||
mockTwakeAppManager = MockTwakeAppManager();
|
||||
|
||||
@@ -133,7 +129,6 @@ void main() {
|
||||
Get.put<ImagePaths>(mockImagePaths);
|
||||
Get.put<ResponsiveUtils>(mockResponsiveUtils);
|
||||
Get.put<Uuid>(mockUuid);
|
||||
Get.put<ApplicationManager>(mockApplicationManager);
|
||||
Get.put<ToastManager>(mockToastManager);
|
||||
Get.put<TwakeAppManager>(mockTwakeAppManager);
|
||||
|
||||
|
||||
-4
@@ -2,7 +2,6 @@ import 'package:core/data/network/config/dynamic_url_interceptors.dart';
|
||||
import 'package:core/presentation/resources/image_paths.dart';
|
||||
import 'package:core/presentation/utils/app_toast.dart';
|
||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||
import 'package:core/utils/application_manager.dart';
|
||||
import 'package:flutter/widgets.dart' hide State;
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:get/get.dart';
|
||||
@@ -190,7 +189,6 @@ const fallbackGenerators = {
|
||||
MockSpec<LanguageCacheManager>(),
|
||||
MockSpec<RemoveAllComposerCacheOnWebInteractor>(),
|
||||
MockSpec<RemoveComposerCacheByIdOnWebInteractor>(),
|
||||
MockSpec<ApplicationManager>(),
|
||||
MockSpec<ToastManager>(),
|
||||
MockSpec<TwakeAppManager>(),
|
||||
MockSpec<GetAllIdentitiesInteractor>(),
|
||||
@@ -265,7 +263,6 @@ void main() {
|
||||
final imagePaths = MockImagePaths();
|
||||
final responsiveUtils = MockResponsiveUtils();
|
||||
final uuid = MockUuid();
|
||||
final applicationManager = MockApplicationManager();
|
||||
final mockToastManager = MockToastManager();
|
||||
final mockTwakeAppManager = MockTwakeAppManager();
|
||||
|
||||
@@ -341,7 +338,6 @@ void main() {
|
||||
Get.put<ImagePaths>(imagePaths);
|
||||
Get.put<ResponsiveUtils>(responsiveUtils);
|
||||
Get.put<Uuid>(uuid);
|
||||
Get.put<ApplicationManager>(applicationManager);
|
||||
Get.put<ToastManager>(mockToastManager);
|
||||
Get.put<TwakeAppManager>(mockTwakeAppManager);
|
||||
Get.put<GetSessionInteractor>(getSessionInteractor);
|
||||
|
||||
-4
@@ -2,7 +2,6 @@ import 'package:core/data/network/config/dynamic_url_interceptors.dart';
|
||||
import 'package:core/presentation/resources/image_paths.dart';
|
||||
import 'package:core/presentation/utils/app_toast.dart';
|
||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||
import 'package:core/utils/application_manager.dart';
|
||||
import 'package:dartz/dartz.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart' hide SearchController, State;
|
||||
@@ -200,7 +199,6 @@ const fallbackGenerators = {
|
||||
MockSpec<LanguageCacheManager>(),
|
||||
MockSpec<RemoveAllComposerCacheOnWebInteractor>(),
|
||||
MockSpec<RemoveComposerCacheByIdOnWebInteractor>(),
|
||||
MockSpec<ApplicationManager>(),
|
||||
MockSpec<GetAllIdentitiesInteractor>(),
|
||||
MockSpec<GetQuotasInteractor>(),
|
||||
MockSpec<ToastManager>(),
|
||||
@@ -265,7 +263,6 @@ void main() {
|
||||
final imagePaths = ImagePaths();
|
||||
final responsiveUtils = MockResponsiveUtils();
|
||||
final uuid = MockUuid();
|
||||
final applicationManager = MockApplicationManager();
|
||||
|
||||
final getSessionInteractor = MockGetSessionInteractor();
|
||||
final getAuthenticatedAccountInteractor = MockGetAuthenticatedAccountInteractor();
|
||||
@@ -349,7 +346,6 @@ void main() {
|
||||
Get.put<ImagePaths>(imagePaths);
|
||||
Get.put<ResponsiveUtils>(responsiveUtils);
|
||||
Get.put<Uuid>(uuid);
|
||||
Get.put<ApplicationManager>(applicationManager);
|
||||
Get.put<GetSessionInteractor>(getSessionInteractor);
|
||||
Get.put<GetAuthenticatedAccountInteractor>(getAuthenticatedAccountInteractor);
|
||||
Get.put<UpdateAccountCacheInteractor>(updateAccountCacheInteractor);
|
||||
|
||||
-5
@@ -2,7 +2,6 @@ import 'package:core/data/network/config/dynamic_url_interceptors.dart';
|
||||
import 'package:core/presentation/resources/image_paths.dart';
|
||||
import 'package:core/presentation/utils/app_toast.dart';
|
||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||
import 'package:core/utils/application_manager.dart';
|
||||
import 'package:dartz/dartz.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:get/get.dart';
|
||||
@@ -65,7 +64,6 @@ const fallbackGenerators = {
|
||||
MockSpec<ImagePaths>(),
|
||||
MockSpec<ResponsiveUtils>(),
|
||||
MockSpec<Uuid>(),
|
||||
MockSpec<ApplicationManager>(),
|
||||
MockSpec<ToastManager>(),
|
||||
MockSpec<TwakeAppManager>(),
|
||||
|
||||
@@ -111,7 +109,6 @@ void main() {
|
||||
late MockImagePaths mockImagePaths;
|
||||
late MockResponsiveUtils mockResponsiveUtils;
|
||||
late MockUuid mockUuid;
|
||||
late MockApplicationManager mockApplicationManager;
|
||||
late MockToastManager mockToastManager;
|
||||
late MockTwakeAppManager mockTwakeAppManager;
|
||||
|
||||
@@ -130,7 +127,6 @@ void main() {
|
||||
mockImagePaths = MockImagePaths();
|
||||
mockResponsiveUtils = MockResponsiveUtils();
|
||||
mockUuid = MockUuid();
|
||||
mockApplicationManager = MockApplicationManager();
|
||||
mockToastManager = MockToastManager();
|
||||
mockTwakeAppManager = MockTwakeAppManager();
|
||||
|
||||
@@ -151,7 +147,6 @@ void main() {
|
||||
Get.put<ImagePaths>(mockImagePaths);
|
||||
Get.put<ResponsiveUtils>(mockResponsiveUtils);
|
||||
Get.put<Uuid>(mockUuid);
|
||||
Get.put<ApplicationManager>(mockApplicationManager);
|
||||
Get.put<ToastManager>(mockToastManager);
|
||||
Get.put<TwakeAppManager>(mockTwakeAppManager);
|
||||
|
||||
|
||||
-5
@@ -2,7 +2,6 @@ import 'package:core/data/network/config/dynamic_url_interceptors.dart';
|
||||
import 'package:core/presentation/resources/image_paths.dart';
|
||||
import 'package:core/presentation/utils/app_toast.dart';
|
||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||
import 'package:core/utils/application_manager.dart';
|
||||
import 'package:dartz/dartz.dart' hide State;
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart' hide State;
|
||||
@@ -66,7 +65,6 @@ import 'rule_filter_creator_controller_test.mocks.dart';
|
||||
MockSpec<AppToast>(),
|
||||
MockSpec<ResponsiveUtils>(),
|
||||
MockSpec<Uuid>(),
|
||||
MockSpec<ApplicationManager>(),
|
||||
MockSpec<ToastManager>(),
|
||||
MockSpec<TwakeAppManager>(),
|
||||
// Rule filter creator controller mock specs
|
||||
@@ -95,7 +93,6 @@ void main() {
|
||||
late ImagePaths imagePaths;
|
||||
late MockResponsiveUtils mockResponsiveUtils;
|
||||
late MockUuid mockUuid;
|
||||
late MockApplicationManager mockApplicationManager;
|
||||
late MockToastManager mockToastManager;
|
||||
late MockTwakeAppManager mockTwakeAppManager;
|
||||
|
||||
@@ -114,7 +111,6 @@ void main() {
|
||||
imagePaths = ImagePaths();
|
||||
mockResponsiveUtils = MockResponsiveUtils();
|
||||
mockUuid = MockUuid();
|
||||
mockApplicationManager = MockApplicationManager();
|
||||
mockToastManager = MockToastManager();
|
||||
mockTwakeAppManager = MockTwakeAppManager();
|
||||
|
||||
@@ -133,7 +129,6 @@ void main() {
|
||||
Get.put<ImagePaths>(imagePaths);
|
||||
Get.put<ResponsiveUtils>(mockResponsiveUtils);
|
||||
Get.put<Uuid>(mockUuid);
|
||||
Get.put<ApplicationManager>(mockApplicationManager);
|
||||
Get.put<ToastManager>(mockToastManager);
|
||||
Get.put<TwakeAppManager>(mockTwakeAppManager);
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ import 'package:core/presentation/resources/image_paths.dart';
|
||||
import 'package:core/presentation/utils/app_toast.dart';
|
||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||
import 'package:core/utils/app_logger.dart';
|
||||
import 'package:core/utils/application_manager.dart';
|
||||
import 'package:dartz/dartz.dart' hide State;
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:get/get.dart';
|
||||
@@ -115,7 +114,6 @@ const fallbackGenerators = {
|
||||
MockSpec<ImagePaths>(),
|
||||
MockSpec<ResponsiveUtils>(),
|
||||
MockSpec<Uuid>(),
|
||||
MockSpec<ApplicationManager>(),
|
||||
MockSpec<ToastManager>(),
|
||||
MockSpec<TwakeAppManager>(),
|
||||
// Thread controller mock specs
|
||||
@@ -251,7 +249,6 @@ void main() {
|
||||
late MockImagePaths mockImagePaths;
|
||||
late MockResponsiveUtils mockResponsiveUtils;
|
||||
late MockUuid mockUuid;
|
||||
late MockApplicationManager mockApplicationManager;
|
||||
late MockToastManager mockToastManager;
|
||||
late MockTwakeAppManager mockTwakeAppManager;
|
||||
|
||||
@@ -269,7 +266,6 @@ void main() {
|
||||
mockImagePaths = MockImagePaths();
|
||||
mockResponsiveUtils = MockResponsiveUtils();
|
||||
mockUuid = MockUuid();
|
||||
mockApplicationManager = MockApplicationManager();
|
||||
mockToastManager = MockToastManager();
|
||||
mockTwakeAppManager = MockTwakeAppManager();
|
||||
|
||||
@@ -288,7 +284,6 @@ void main() {
|
||||
Get.put<ImagePaths>(mockImagePaths);
|
||||
Get.put<ResponsiveUtils>(mockResponsiveUtils);
|
||||
Get.put<Uuid>(mockUuid);
|
||||
Get.put<ApplicationManager>(mockApplicationManager);
|
||||
Get.put<ToastManager>(mockToastManager);
|
||||
Get.put<TwakeAppManager>(mockTwakeAppManager);
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ import 'package:core/presentation/resources/image_paths.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:core/presentation/utils/app_toast.dart';
|
||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||
import 'package:core/utils/application_manager.dart';
|
||||
import 'package:core/utils/platform_info.dart';
|
||||
import 'package:dartz/dartz.dart' hide State;
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
@@ -75,7 +74,6 @@ const fallbackGenerators = {
|
||||
MockSpec<ImagePaths>(),
|
||||
MockSpec<ResponsiveUtils>(),
|
||||
MockSpec<Uuid>(),
|
||||
MockSpec<ApplicationManager>(),
|
||||
MockSpec<ToastManager>(),
|
||||
MockSpec<TwakeAppManager>(),
|
||||
// Thread controller mock specs
|
||||
@@ -118,7 +116,6 @@ void main() {
|
||||
late MockImagePaths mockImagePaths;
|
||||
late MockResponsiveUtils mockResponsiveUtils;
|
||||
late MockUuid mockUuid;
|
||||
late MockApplicationManager mockApplicationManager;
|
||||
late MockToastManager mockToastManager;
|
||||
late MockTwakeAppManager mockTwakeAppManager;
|
||||
|
||||
@@ -136,7 +133,6 @@ void main() {
|
||||
mockImagePaths = MockImagePaths();
|
||||
mockResponsiveUtils = MockResponsiveUtils();
|
||||
mockUuid = MockUuid();
|
||||
mockApplicationManager = MockApplicationManager();
|
||||
mockToastManager = MockToastManager();
|
||||
mockTwakeAppManager = MockTwakeAppManager();
|
||||
|
||||
@@ -155,7 +151,6 @@ void main() {
|
||||
Get.put<ImagePaths>(mockImagePaths);
|
||||
Get.put<ResponsiveUtils>(mockResponsiveUtils);
|
||||
Get.put<Uuid>(mockUuid);
|
||||
Get.put<ApplicationManager>(mockApplicationManager);
|
||||
Get.put<ToastManager>(mockToastManager);
|
||||
Get.put<TwakeAppManager>(mockTwakeAppManager);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user