@@ -63,33 +63,33 @@ std::unique_ptr<TodayMockService> mock_service() noexcept
63
63
auto result = std::make_unique<TodayMockService>();
64
64
65
65
auto query = std::make_shared<Query>(
66
- [mockService = result.get ()]() -> std::vector<std::shared_ptr<Appointment>> {
66
+ [mockService = result.get ()]() noexcept -> std::vector<std::shared_ptr<Appointment>> {
67
67
++mockService->getAppointmentsCount ;
68
68
return { std::make_shared<Appointment>(response::IdType (getFakeAppointmentId ()),
69
69
" tomorrow" ,
70
70
" Lunch?" ,
71
71
false ) };
72
72
},
73
- [mockService = result.get ()]() -> std::vector<std::shared_ptr<Task>> {
73
+ [mockService = result.get ()]() noexcept -> std::vector<std::shared_ptr<Task>> {
74
74
++mockService->getTasksCount ;
75
75
return {
76
76
std::make_shared<Task>(response::IdType (getFakeTaskId ()), " Don't forget" , true )
77
77
};
78
78
},
79
- [mockService = result.get ()]() -> std::vector<std::shared_ptr<Folder>> {
79
+ [mockService = result.get ()]() noexcept -> std::vector<std::shared_ptr<Folder>> {
80
80
++mockService->getUnreadCountsCount ;
81
81
return {
82
82
std::make_shared<Folder>(response::IdType (getFakeFolderId ()), " \" Fake\" Inbox" , 3 )
83
83
};
84
84
});
85
85
auto mutation = std::make_shared<Mutation>(
86
- [](CompleteTaskInput&& input) -> std::shared_ptr<CompleteTaskPayload> {
86
+ [](CompleteTaskInput&& input) noexcept -> std::shared_ptr<CompleteTaskPayload> {
87
87
return std::make_shared<CompleteTaskPayload>(
88
88
std::make_shared<Task>(std::move (input.id ), " Mutated Task!" , *(input.isComplete )),
89
89
std::move (input.clientMutationId ));
90
90
});
91
91
auto subscription = std::make_shared<NextAppointmentChange>(
92
- [](const std::shared_ptr<service::RequestState>&) -> std::shared_ptr<Appointment> {
92
+ [](const std::shared_ptr<service::RequestState>&) noexcept -> std::shared_ptr<Appointment> {
93
93
return { std::make_shared<Appointment>(response::IdType (getFakeAppointmentId ()),
94
94
" tomorrow" ,
95
95
" Lunch?" ,
0 commit comments