LCOV - code coverage report
Current view: top level - asyncFreeRtos/src/async - Types.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 7 7 100.0 %
Date: 2025-01-20 13:53:09 Functions: 3 3 100.0 %

          Line data    Source code
       1             : // Copyright 2024 Accenture.
       2             : 
       3             : #include "async/AsyncBinding.h"
       4             : 
       5             : namespace async
       6             : {
       7          27 : TimeoutType::TimeoutType() : _runnable(nullptr), _context(0) {}
       8             : 
       9           2 : void TimeoutType::cancel() { AsyncBindingType::AdapterType::cancel(*this); }
      10             : 
      11           5 : void TimeoutType::expired()
      12             : {
      13           5 :     RunnableType* const runnable = _runnable;
      14           5 :     if (runnable != nullptr)
      15             :     {
      16           4 :         runnable->execute();
      17             :     }
      18           5 : }
      19             : 
      20             : } // namespace async

Generated by: LCOV version 1.14