Easy Navigation
Loading...
Searching...
No Matches
rt_monitor_tests.cpp File Reference

safety::RtMonitor, with simulated cycle start times. More...

#include <chrono>
#include "gtest/gtest.h"
#include "easynav_system/safety/RtMonitor.hpp"
Include dependency graph for rt_monitor_tests.cpp:

Classes

class  RtMonitor
 Detects real-time cycles that start late. More...

Typedefs

using Status = RtMonitor::Status

Functions

 TEST (RtMonitorTest, ALateCycleThenOnTimeAgain)
 TEST (RtMonitorTest, ConfigureChangesThePeriodAndStartsOver)
 TEST (RtMonitorTest, CyclesOnTimeStayOk)
 TEST (RtMonitorTest, LateIsMoreThanTheMaximumPeriod)
 TEST (RtMonitorTest, OneLateCycleIsAnErrorIfSoConfigured)
 TEST (RtMonitorTest, ResetForgetsThePreviousCycle)
 TEST (RtMonitorTest, TheFirstCycleIsNeverLate)
 TEST (RtMonitorTest, TooManyLateCyclesInARowAreAnError)

Detailed Description

safety::RtMonitor, with simulated cycle start times.

Typedef Documentation

◆ Status

Function Documentation

◆ TEST() [1/8]

TEST ( RtMonitorTest ,
ALateCycleThenOnTimeAgain  )

◆ TEST() [2/8]

TEST ( RtMonitorTest ,
ConfigureChangesThePeriodAndStartsOver  )

◆ TEST() [3/8]

TEST ( RtMonitorTest ,
CyclesOnTimeStayOk  )

◆ TEST() [4/8]

TEST ( RtMonitorTest ,
LateIsMoreThanTheMaximumPeriod  )

◆ TEST() [5/8]

TEST ( RtMonitorTest ,
OneLateCycleIsAnErrorIfSoConfigured  )

◆ TEST() [6/8]

TEST ( RtMonitorTest ,
ResetForgetsThePreviousCycle  )

◆ TEST() [7/8]

TEST ( RtMonitorTest ,
TheFirstCycleIsNeverLate  )

◆ TEST() [8/8]

TEST ( RtMonitorTest ,
TooManyLateCyclesInARowAreAnError  )