MCPcopy Create free account
hub / github.com/arkhipenko/TaskScheduler / repeating_callback

Function repeating_callback

tests/test-scheduler-basic.cpp:69–74  ·  view source on GitHub ↗

* @brief Callback for testing repeating task functionality * * Uses static counter to track execution number, enabling verification * of proper iteration counting and repeated execution behavior. * Critical for testing tasks with limited iteration counts and infinite tasks. */

Source from the content-addressed store, hash-verified

67 * Critical for testing tasks with limited iteration counts and infinite tasks.
68 */
69void repeating_callback() {
70 static int counter = 0;
71 counter++;
72 test_output.push_back("Repeating task #" + std::to_string(counter));
73 std::cout << "Repeating task #" << counter << " executed at " << millis() << "ms" << std::endl;
74}
75
76/**
77 * @brief Test fixture class for TaskScheduler unit tests

Callers

nothing calls this directly

Calls 1

millisFunction · 0.85

Tested by

no test coverage detected