flutter_secure_storage icon indicating copy to clipboard operation
flutter_secure_storage copied to clipboard

Getting this secure storage issue while usinf bloc test and mockito

Open bm-7 opened this issue 9 months ago • 1 comments

what exactly is the problem here?.....

package:matcher expect package:bloc_test/src/bloc_test.dart 220:16 testBloc. ===== asynchronous gap =========================== dart:async _Completer.completeError package:bloc_test/src/bloc_test.dart 257:43 _runZonedGuarded. ===== asynchronous gap =========================== dart:async _CustomZone.registerBinaryCallback package:bloc_test/src/bloc_test.dart 254:5 _runZonedGuarded. dart:async runZonedGuarded package:bloc_test/src/bloc_test.dart 253:3 _runZonedGuarded package:bloc_test/src/bloc_test.dart 200:11 testBloc package:bloc_test/src/bloc_test.dart 156:13 blocTest. Failed to write log to file: PathNotFoundException: Cannot open file, path = '' (OS Error: The system cannot find the path specified. , errno = 3) Failed to write log to file: PathNotFoundException: Cannot open file, path = '' (OS Error: The system cannot find the path specified. , errno = 3) MissingPluginException(No implementation found for method read on channel plugins.it_nomads.com/flutter_secure_storage) package:flutter/src/services/platform_channel.dart 332:7 MethodChannel._invokeMethod ===== asynchronous gap =========================== dart:async _CustomZone.registerBinaryCallback package:ngcad_first_responder/providers/uuid_provider.dart 33:5 CommonServices.getToken package:ngcad_first_responder/configurations/mbaas_api.dart 22:50 new MBaaSApi package:ngcad_first_responder/providers/api_provider.dart 8:23 new ApiProvider package:ngcad_first_responder/repository/others_repo.dart 5:26 new CommonRepository package:ngcad_first_responder/blocs/common_bloc/location_bloc.dart 18:49 LocationBloc._onGetNearbyVehiclesEvent package:bloc/src/bloc.dart 229:26 Bloc.on..handleEvent package:bloc/src/bloc.dart 238:9 Bloc.on. ===== asynchronous gap =========================== dart:async _ForwardingStream.listen package:bloc/src/bloc.dart 313:40 _FlatMapStreamTransformer.bind. dart:async _StreamImpl.listen package:bloc/src/bloc.dart 241:7 Bloc.on package:ngcad_first_responder/blocs/common_bloc/location_bloc.dart 11:5 new LocationBloc test\blocs\common_bloc_test\location_bloc_test\location_bloc_test.dart 28:20 main. MissingPluginException(No implementation found for method read on channel plugins.it_nomads.com/flutter_secure_storage) package:flutter/src/services/platform_channel.dart 332:7 MethodChannel._invokeMethod ===== asynchronous gap =========================== dart:async _CustomZone.registerBinaryCallback package:ngcad_first_responder/providers/uuid_provider.dart 33:5 CommonServices.getToken package:ngcad_first_responder/configurations/mbaas_api.dart 22:50 new MBaaSApi package:ngcad_first_responder/providers/api_provider_fleet.dart 9:23 new ApiProviderFleet package:ngcad_first_responder/repository/others_repo.dart 6:36 new CommonRepository package:ngcad_first_responder/blocs/common_bloc/location_bloc.dart 18:49 LocationBloc._onGetNearbyVehiclesEvent package:bloc/src/bloc.dart 229:26 Bloc.on..handleEvent package:bloc/src/bloc.dart 238:9 Bloc.on. ===== asynchronous gap =========================== dart:async _ForwardingStream.listen package:bloc/src/bloc.dart 313:40 _FlatMapStreamTransformer.bind. dart:async _StreamImpl.listen package:bloc/src/bloc.dart 241:7 Bloc.on package:ngcad_first_responder/blocs/common_bloc/location_bloc.dart 11:5 new LocationBloc test\blocs\common_bloc_test\location_bloc_test\location_bloc_test.dart 28:20 main. getNearbyVehiclesResponse EXCEPTION =======>MissingPluginException(No implementation found for method read on channel plugins.it_nomads.com/flutter_secure_storage)

Expected: [ <<Instance of 'CommonState'> with status: <Instance of 'ApiLoadingState'>>, <<Instance of 'CommonState'> with status: <Instance of 'ApiResponse'>> ] Actual: [Instance of 'CommonState'] Which: at location [1] is [Instance of 'CommonState'] which shorter than expected

bm-7 avatar Feb 21 '25 09:02 bm-7

⚠️ This issue has been marked as stale because it has been open for 60 days with no activity.

If this issue is still relevant, please comment to keep it active. Otherwise, it will be closed in 60 days.

github-actions[bot] avatar Apr 23 '25 02:04 github-actions[bot]

❌ This issue has been closed because it remained inactive for 60 days after being marked as stale.

github-actions[bot] avatar Jun 22 '25 03:06 github-actions[bot]