이벤트 가져오기 위젯 테스트 추가 및 테스트 훅 도입

This commit is contained in:
2025-09-12 06:33:44 +09:00
parent 107abc963f
commit a5f2544d11
121 changed files with 39277 additions and 3911 deletions
@@ -0,0 +1,374 @@
// Mocks generated by Mockito 5.4.6 from annotations
// in lanebow/test/screens/club/participant_form_screen_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i7;
import 'dart:ui' as _i8;
import 'package:lanebow/models/event_model.dart' as _i2;
import 'package:lanebow/models/participant_model.dart' as _i3;
import 'package:lanebow/models/score_model.dart' as _i4;
import 'package:lanebow/models/team_model.dart' as _i6;
import 'package:lanebow/services/event_service.dart' as _i5;
import 'package:mockito/mockito.dart' as _i1;
// ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values
// ignore_for_file: avoid_setters_without_getters
// ignore_for_file: comment_references
// ignore_for_file: deprecated_member_use
// ignore_for_file: deprecated_member_use_from_same_package
// ignore_for_file: implementation_imports
// ignore_for_file: invalid_use_of_visible_for_testing_member
// ignore_for_file: must_be_immutable
// ignore_for_file: prefer_const_constructors
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class
class _FakeEvent_0 extends _i1.SmartFake implements _i2.Event {
_FakeEvent_0(Object parent, Invocation parentInvocation)
: super(parent, parentInvocation);
}
class _FakeParticipant_1 extends _i1.SmartFake implements _i3.Participant {
_FakeParticipant_1(Object parent, Invocation parentInvocation)
: super(parent, parentInvocation);
}
class _FakeScore_2 extends _i1.SmartFake implements _i4.Score {
_FakeScore_2(Object parent, Invocation parentInvocation)
: super(parent, parentInvocation);
}
/// A class which mocks [EventService].
///
/// See the documentation for Mockito's code generation for more information.
class MockEventService extends _i1.Mock implements _i5.EventService {
MockEventService() {
_i1.throwOnMissingStub(this);
}
@override
List<_i2.Event> get events =>
(super.noSuchMethod(
Invocation.getter(#events),
returnValue: <_i2.Event>[],
)
as List<_i2.Event>);
@override
List<_i3.Participant> get participants =>
(super.noSuchMethod(
Invocation.getter(#participants),
returnValue: <_i3.Participant>[],
)
as List<_i3.Participant>);
@override
List<_i4.Score> get scores =>
(super.noSuchMethod(
Invocation.getter(#scores),
returnValue: <_i4.Score>[],
)
as List<_i4.Score>);
@override
List<_i6.Team> get teams =>
(super.noSuchMethod(Invocation.getter(#teams), returnValue: <_i6.Team>[])
as List<_i6.Team>);
@override
bool get isLoading =>
(super.noSuchMethod(Invocation.getter(#isLoading), returnValue: false)
as bool);
@override
bool get hasListeners =>
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false)
as bool);
@override
_i7.Future<void> initialize(String? token) =>
(super.noSuchMethod(
Invocation.method(#initialize, [token]),
returnValue: _i7.Future<void>.value(),
returnValueForMissingStub: _i7.Future<void>.value(),
)
as _i7.Future<void>);
@override
void setClubId(String? clubId) => super.noSuchMethod(
Invocation.method(#setClubId, [clubId]),
returnValueForMissingStub: null,
);
@override
_i7.Future<void> fetchClubEvents() =>
(super.noSuchMethod(
Invocation.method(#fetchClubEvents, []),
returnValue: _i7.Future<void>.value(),
returnValueForMissingStub: _i7.Future<void>.value(),
)
as _i7.Future<void>);
@override
_i7.Future<_i2.Event> fetchEventById(String? eventId) =>
(super.noSuchMethod(
Invocation.method(#fetchEventById, [eventId]),
returnValue: _i7.Future<_i2.Event>.value(
_FakeEvent_0(this, Invocation.method(#fetchEventById, [eventId])),
),
)
as _i7.Future<_i2.Event>);
@override
_i7.Future<_i2.Event> createEvent(Map<String, dynamic>? eventData) =>
(super.noSuchMethod(
Invocation.method(#createEvent, [eventData]),
returnValue: _i7.Future<_i2.Event>.value(
_FakeEvent_0(this, Invocation.method(#createEvent, [eventData])),
),
)
as _i7.Future<_i2.Event>);
@override
_i7.Future<_i2.Event> updateEvent(
String? eventId,
Map<String, dynamic>? updates,
) =>
(super.noSuchMethod(
Invocation.method(#updateEvent, [eventId, updates]),
returnValue: _i7.Future<_i2.Event>.value(
_FakeEvent_0(
this,
Invocation.method(#updateEvent, [eventId, updates]),
),
),
)
as _i7.Future<_i2.Event>);
@override
_i7.Future<bool> deleteEvent(String? eventId) =>
(super.noSuchMethod(
Invocation.method(#deleteEvent, [eventId]),
returnValue: _i7.Future<bool>.value(false),
)
as _i7.Future<bool>);
@override
_i7.Future<List<_i3.Participant>> fetchEventParticipants(String? eventId) =>
(super.noSuchMethod(
Invocation.method(#fetchEventParticipants, [eventId]),
returnValue: _i7.Future<List<_i3.Participant>>.value(
<_i3.Participant>[],
),
)
as _i7.Future<List<_i3.Participant>>);
@override
_i7.Future<_i3.Participant> addParticipant(
String? eventId,
Map<String, dynamic>? participantData,
) =>
(super.noSuchMethod(
Invocation.method(#addParticipant, [eventId, participantData]),
returnValue: _i7.Future<_i3.Participant>.value(
_FakeParticipant_1(
this,
Invocation.method(#addParticipant, [eventId, participantData]),
),
),
)
as _i7.Future<_i3.Participant>);
@override
_i7.Future<_i3.Participant> updateParticipant(
String? eventId,
String? participantId,
Map<String, dynamic>? updates,
) =>
(super.noSuchMethod(
Invocation.method(#updateParticipant, [
eventId,
participantId,
updates,
]),
returnValue: _i7.Future<_i3.Participant>.value(
_FakeParticipant_1(
this,
Invocation.method(#updateParticipant, [
eventId,
participantId,
updates,
]),
),
),
)
as _i7.Future<_i3.Participant>);
@override
_i7.Future<bool> removeParticipant(String? eventId, String? participantId) =>
(super.noSuchMethod(
Invocation.method(#removeParticipant, [eventId, participantId]),
returnValue: _i7.Future<bool>.value(false),
)
as _i7.Future<bool>);
@override
_i7.Future<_i3.Participant> updateParticipantStatus(
String? eventId,
String? participantId,
String? status,
) =>
(super.noSuchMethod(
Invocation.method(#updateParticipantStatus, [
eventId,
participantId,
status,
]),
returnValue: _i7.Future<_i3.Participant>.value(
_FakeParticipant_1(
this,
Invocation.method(#updateParticipantStatus, [
eventId,
participantId,
status,
]),
),
),
)
as _i7.Future<_i3.Participant>);
@override
_i7.Future<List<_i4.Score>> fetchEventScores(String? eventId) =>
(super.noSuchMethod(
Invocation.method(#fetchEventScores, [eventId]),
returnValue: _i7.Future<List<_i4.Score>>.value(<_i4.Score>[]),
)
as _i7.Future<List<_i4.Score>>);
@override
_i7.Future<_i4.Score> addScore(
String? eventId,
Map<String, dynamic>? scoreData,
) =>
(super.noSuchMethod(
Invocation.method(#addScore, [eventId, scoreData]),
returnValue: _i7.Future<_i4.Score>.value(
_FakeScore_2(
this,
Invocation.method(#addScore, [eventId, scoreData]),
),
),
)
as _i7.Future<_i4.Score>);
@override
_i7.Future<_i4.Score> updateScore(
String? eventId,
String? scoreId,
Map<String, dynamic>? updates,
) =>
(super.noSuchMethod(
Invocation.method(#updateScore, [eventId, scoreId, updates]),
returnValue: _i7.Future<_i4.Score>.value(
_FakeScore_2(
this,
Invocation.method(#updateScore, [eventId, scoreId, updates]),
),
),
)
as _i7.Future<_i4.Score>);
@override
_i7.Future<bool> deleteScore(String? eventId, String? scoreId) =>
(super.noSuchMethod(
Invocation.method(#deleteScore, [eventId, scoreId]),
returnValue: _i7.Future<bool>.value(false),
)
as _i7.Future<bool>);
@override
_i7.Future<List<_i6.Team>> fetchEventTeams(String? eventId) =>
(super.noSuchMethod(
Invocation.method(#fetchEventTeams, [eventId]),
returnValue: _i7.Future<List<_i6.Team>>.value(<_i6.Team>[]),
)
as _i7.Future<List<_i6.Team>>);
@override
_i7.Future<bool> hasEventTeams(String? eventId) =>
(super.noSuchMethod(
Invocation.method(#hasEventTeams, [eventId]),
returnValue: _i7.Future<bool>.value(false),
)
as _i7.Future<bool>);
@override
_i7.Future<List<_i6.Team>> generateTeams(
String? eventId,
Map<String, dynamic>? teamConfig,
) =>
(super.noSuchMethod(
Invocation.method(#generateTeams, [eventId, teamConfig]),
returnValue: _i7.Future<List<_i6.Team>>.value(<_i6.Team>[]),
)
as _i7.Future<List<_i6.Team>>);
@override
_i7.Future<bool> saveTeams(String? eventId, List<_i6.Team>? teams) =>
(super.noSuchMethod(
Invocation.method(#saveTeams, [eventId, teams]),
returnValue: _i7.Future<bool>.value(false),
)
as _i7.Future<bool>);
@override
_i7.Future<List<_i2.Event>> createEventsFromFile(
List<Map<String, dynamic>>? eventsData,
) =>
(super.noSuchMethod(
Invocation.method(#createEventsFromFile, [eventsData]),
returnValue: _i7.Future<List<_i2.Event>>.value(<_i2.Event>[]),
)
as _i7.Future<List<_i2.Event>>);
@override
_i7.Future<_i2.Event> cloneEvent(String? eventId, {String? newName}) =>
(super.noSuchMethod(
Invocation.method(#cloneEvent, [eventId], {#newName: newName}),
returnValue: _i7.Future<_i2.Event>.value(
_FakeEvent_0(
this,
Invocation.method(#cloneEvent, [eventId], {#newName: newName}),
),
),
)
as _i7.Future<_i2.Event>);
@override
void addListener(_i8.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(#addListener, [listener]),
returnValueForMissingStub: null,
);
@override
void removeListener(_i8.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(#removeListener, [listener]),
returnValueForMissingStub: null,
);
@override
void dispose() => super.noSuchMethod(
Invocation.method(#dispose, []),
returnValueForMissingStub: null,
);
@override
void notifyListeners() => super.noSuchMethod(
Invocation.method(#notifyListeners, []),
returnValueForMissingStub: null,
);
}