이벤트 가져오기 위젯 테스트 추가 및 테스트 훅 도입
This commit is contained in:
@@ -3,8 +3,9 @@
|
||||
// Do not manually edit this file.
|
||||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'dart:async' as _i3;
|
||||
import 'dart:async' as _i4;
|
||||
|
||||
import 'package:dio/dio.dart' as _i3;
|
||||
import 'package:lanebow/services/api_service.dart' as _i2;
|
||||
import 'package:mockito/mockito.dart' as _i1;
|
||||
|
||||
@@ -30,6 +31,12 @@ class MockApiService extends _i1.Mock implements _i2.ApiService {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
||||
@override
|
||||
void setDio(_i3.Dio? dio) => super.noSuchMethod(
|
||||
Invocation.method(#setDio, [dio]),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void setToken(String? token) => super.noSuchMethod(
|
||||
Invocation.method(#setToken, [token]),
|
||||
@@ -37,7 +44,7 @@ class MockApiService extends _i1.Mock implements _i2.ApiService {
|
||||
);
|
||||
|
||||
@override
|
||||
_i3.Future<dynamic> get(
|
||||
_i4.Future<dynamic> get(
|
||||
String? path, {
|
||||
Map<String, dynamic>? queryParameters,
|
||||
}) =>
|
||||
@@ -47,31 +54,31 @@ class MockApiService extends _i1.Mock implements _i2.ApiService {
|
||||
[path],
|
||||
{#queryParameters: queryParameters},
|
||||
),
|
||||
returnValue: _i3.Future<dynamic>.value(),
|
||||
returnValue: _i4.Future<dynamic>.value(),
|
||||
)
|
||||
as _i3.Future<dynamic>);
|
||||
as _i4.Future<dynamic>);
|
||||
|
||||
@override
|
||||
_i3.Future<dynamic> post(String? path, {dynamic data}) =>
|
||||
_i4.Future<dynamic> post(String? path, {dynamic data}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(#post, [path], {#data: data}),
|
||||
returnValue: _i3.Future<dynamic>.value(),
|
||||
returnValue: _i4.Future<dynamic>.value(),
|
||||
)
|
||||
as _i3.Future<dynamic>);
|
||||
as _i4.Future<dynamic>);
|
||||
|
||||
@override
|
||||
_i3.Future<dynamic> put(String? path, {dynamic data}) =>
|
||||
_i4.Future<dynamic> put(String? path, {dynamic data}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(#put, [path], {#data: data}),
|
||||
returnValue: _i3.Future<dynamic>.value(),
|
||||
returnValue: _i4.Future<dynamic>.value(),
|
||||
)
|
||||
as _i3.Future<dynamic>);
|
||||
as _i4.Future<dynamic>);
|
||||
|
||||
@override
|
||||
_i3.Future<dynamic> delete(String? path) =>
|
||||
_i4.Future<dynamic> delete(String? path) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(#delete, [path]),
|
||||
returnValue: _i3.Future<dynamic>.value(),
|
||||
returnValue: _i4.Future<dynamic>.value(),
|
||||
)
|
||||
as _i3.Future<dynamic>);
|
||||
as _i4.Future<dynamic>);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user