@@ -83,7 +83,7 @@ TEST(TaskTest, SlowTask_WithInt32Vector_ThrowsOnTimeout) {
83
83
{
84
84
std::vector<int32_t > in (20 , 1 );
85
85
ppc::test::FakeSlowTask<std::vector<int32_t >, int32_t > test_task (in);
86
- test_task.ExpectIncompleteLifecycle (); // Task may not complete due to timeout
86
+ test_task.ExpectIncompleteLifecycle (); // Task may not complete due to timeout
87
87
ASSERT_EQ (test_task.Validation (), true );
88
88
test_task.PreProcessing ();
89
89
test_task.Run ();
@@ -95,7 +95,7 @@ TEST(TaskTest, TestTask_WithEmptyInput_ValidationFails) {
95
95
{
96
96
std::vector<int32_t > in;
97
97
ppc::test::TestTask<std::vector<int32_t >, int32_t > test_task (in);
98
- test_task.ExpectIncompleteLifecycle (); // Task fails validation so won't complete
98
+ test_task.ExpectIncompleteLifecycle (); // Task fails validation so won't complete
99
99
ASSERT_EQ (test_task.Validation (), false );
100
100
}
101
101
}
@@ -124,7 +124,7 @@ TEST(TaskTest, TestTask_WithWrongExecutionOrder_ThrowsRuntimeError) {
124
124
{
125
125
std::vector<float > in (20 , 1 );
126
126
ppc::test::TestTask<std::vector<float >, float > test_task (in);
127
- test_task.ExpectIncompleteLifecycle (); // Task has wrong execution order
127
+ test_task.ExpectIncompleteLifecycle (); // Task has wrong execution order
128
128
ASSERT_EQ (test_task.Validation (), true );
129
129
test_task.PreProcessing ();
130
130
EXPECT_THROW (test_task.PostProcessing (), std::runtime_error);
@@ -135,7 +135,7 @@ TEST(TaskTest, TestTask_WithPrematurePostProcessingNoSteps_ThrowsRuntimeError) {
135
135
{
136
136
std::vector<float > in (20 , 1 );
137
137
ppc::test::TestTask<std::vector<float >, float > test_task (in);
138
- test_task.ExpectIncompleteLifecycle (); // Task throws exception so won't complete
138
+ test_task.ExpectIncompleteLifecycle (); // Task throws exception so won't complete
139
139
EXPECT_THROW (test_task.PostProcessing (), std::runtime_error);
140
140
}
141
141
}
@@ -144,7 +144,7 @@ TEST(TaskTest, TestTask_WithPrematurePostProcessingAfterPreProcessing_ThrowsRunt
144
144
{
145
145
std::vector<float > in (20 , 1 );
146
146
ppc::test::TestTask<std::vector<float >, float > test_task (in);
147
- test_task.ExpectIncompleteLifecycle (); // Task throws exceptions so won't complete
147
+ test_task.ExpectIncompleteLifecycle (); // Task throws exceptions so won't complete
148
148
EXPECT_THROW (test_task.PreProcessing (), std::runtime_error);
149
149
EXPECT_THROW (test_task.PostProcessing (), std::runtime_error);
150
150
}
@@ -228,7 +228,7 @@ TEST(TaskTest, TaskDestructor_WithIncompleteStage_SetsDestructorFailureFlag) {
228
228
bool RunImpl () override { return true ; }
229
229
bool PostProcessingImpl () override { return true ; }
230
230
} task (in);
231
- task.ExpectIncompleteLifecycle (); // Mark this task as expected to be incomplete
231
+ task.ExpectIncompleteLifecycle (); // Mark this task as expected to be incomplete
232
232
task.Validation ();
233
233
}
234
234
// No need to check global flag - task handles its own validation
@@ -244,7 +244,7 @@ TEST(TaskTest, TaskDestructor_WithEmptyTask_SetsDestructorFailureFlag) {
244
244
bool RunImpl () override { return true ; }
245
245
bool PostProcessingImpl () override { return true ; }
246
246
} task (in);
247
- task.ExpectIncompleteLifecycle (); // Mark this task as expected to be incomplete
247
+ task.ExpectIncompleteLifecycle (); // Mark this task as expected to be incomplete
248
248
}
249
249
// No need to check global flag - task handles its own validation
250
250
}
@@ -264,7 +264,7 @@ TEST(TaskTest, InternalTimeTest_WithTimeoutExceeded_ThrowsRuntimeError) {
264
264
{
265
265
std::vector<int32_t > in (20 , 1 );
266
266
SlowTask task (in);
267
- task.ExpectIncompleteLifecycle (); // Task throws timeout exception
267
+ task.ExpectIncompleteLifecycle (); // Task throws timeout exception
268
268
task.GetStateOfTesting () = StateOfTesting::kFunc ;
269
269
task.Validation ();
270
270
EXPECT_NO_THROW (task.PreProcessing ());
@@ -285,7 +285,7 @@ class DummyTask : public Task<int, int> {
285
285
TEST (TaskTest, Validation_WhenCalledTwice_ThrowsRuntimeError) {
286
286
{
287
287
auto task = std::make_shared<DummyTask>();
288
- task->ExpectIncompleteLifecycle (); // Task throws exception so won't complete
288
+ task->ExpectIncompleteLifecycle (); // Task throws exception so won't complete
289
289
task->Validation ();
290
290
EXPECT_THROW (task->Validation (), std::runtime_error);
291
291
}
@@ -294,23 +294,23 @@ TEST(TaskTest, Validation_WhenCalledTwice_ThrowsRuntimeError) {
294
294
TEST (TaskTest, PreProcessing_WhenCalledBeforeValidation_ThrowsRuntimeError) {
295
295
{
296
296
auto task = std::make_shared<DummyTask>();
297
- task->ExpectIncompleteLifecycle (); // Task throws exception so won't complete
297
+ task->ExpectIncompleteLifecycle (); // Task throws exception so won't complete
298
298
EXPECT_THROW (task->PreProcessing (), std::runtime_error);
299
299
}
300
300
}
301
301
302
302
TEST (TaskTest, Run_WhenCalledBeforePreProcessing_ThrowsRuntimeError) {
303
303
{
304
304
auto task = std::make_shared<DummyTask>();
305
- task->ExpectIncompleteLifecycle (); // Task throws exception so won't complete
305
+ task->ExpectIncompleteLifecycle (); // Task throws exception so won't complete
306
306
EXPECT_THROW (task->Run (), std::runtime_error);
307
307
}
308
308
}
309
309
310
310
TEST (TaskTest, PostProcessing_WhenCalledBeforeRun_ThrowsRuntimeError) {
311
311
{
312
312
auto task = std::make_shared<DummyTask>();
313
- task->ExpectIncompleteLifecycle (); // Task throws exception so won't complete
313
+ task->ExpectIncompleteLifecycle (); // Task throws exception so won't complete
314
314
task->Validation ();
315
315
task->PreProcessing ();
316
316
EXPECT_THROW (task->PostProcessing (), std::runtime_error);
0 commit comments