* @brief Test Task default constructor behavior * * TESTS: Task() * * PURPOSE: Verify that a Task created with the default constructor initializes * all properties to safe default values and is in a predictable state. * * EXPECTATIONS: * - Task should be disabled by default (safety) * - Interval should be 0 (no automatic execution) * - Iterations should be 0 (won't execute) * - RunCount
| 375 | * execute unexpectedly. This is critical for safe initialization patterns. |
| 376 | */ |
| 377 | TEST_F(SchedulerThoroughTest, TaskDefaultConstructor) { |
| 378 | Task task; |
| 379 | |
| 380 | // Verify task is in safe, inert state after default construction |
| 381 | EXPECT_FALSE(task.isEnabled()); // Should not execute without explicit enable |
| 382 | EXPECT_EQ(task.getInterval(), 0); // No automatic timing |
| 383 | EXPECT_EQ(task.getIterations(), 0); // Won't execute without iterations set |
| 384 | EXPECT_EQ(task.getRunCounter(), 0); // No executions yet |
| 385 | } |
| 386 | |
| 387 | /** |
| 388 | * @brief Test Task parameterized constructor with all options |
nothing calls this directly
no test coverage detected