Hotwheels-Cluster 1.2
Creation of Cluster APP for SEA:ME project.
 
Loading...
Searching...
No Matches
Test List
Global main (int argc, char **argv)
Tests the initialization of the MCP2515 controller.
Global TEST (PeripheralControllerTest, TestServoPWM)
Tests if the servo PWM is set correctly.
Global TEST (PeripheralControllerTest, TestMotorPWM)
Tests if the motor PWM is set correctly.
Global TEST (PeripheralControllerTest, TestInitServo)
Tests if the servo is initialized correctly.
Global TEST (PeripheralControllerTest, TestInitMotors)
Tests if the motors are initialized correctly.
Global TEST (PeripheralControllerTest, TestI2CWriteByteData)
Tests if I2C write byte data is called correctly.
Global TEST (PeripheralControllerTest, TestI2CReadByteData)
Tests if I2C read byte data is called correctly.
Global TEST (PeripheralControllerTest, TestWriteByteDataException)
Tests if write_byte_data() throws an exception on failure.
Global TEST (PeripheralControllerTest, TestReadByteDataException)
Tests if read_byte_data() throws an exception on failure.
Global TEST_F (CanBusManagerTest, ForwardSpeedDataFromMCP2515)
๐Ÿš— Forward Speed Data
Global TEST_F (CanBusManagerTest, ForwardRpmDataFromMCP2515)
๐Ÿ”„ Forward RPM Data
Global TEST_F (CanBusManagerTest, InitializeCanBusManager)
๐Ÿš€ Initialization
Global TEST_F (CanBusManagerTest, ManagerCleanUpBehavior)
๐Ÿงน Manager Clean-Up Behavior
Global TEST_F (DataManagerTest, ForwardSpeedDataToVehicleDataManager)
๐Ÿš— Forward Speed Data
Global TEST_F (DataManagerTest, ForwardRpmDataToVehicleDataManager)
๐Ÿ”„ Forward RPM Data
Global TEST_F (DataManagerTest, ForwardSteeringDataToVehicleDataManager)
๐ŸŽ๏ธ Forward Steering Data
Global TEST_F (DataManagerTest, ForwardDirectionDataToVehicleDataManager)
๐Ÿšฆ Forward Direction Data
Global TEST_F (DataManagerTest, ForwardTimeDataToSystemDataManager)
๐Ÿ“… Forward Time Data
Global TEST_F (DataManagerTest, ForwardWifiDataToSystemDataManager)
๐Ÿ“ก Forward WiFi Data
Global TEST_F (DataManagerTest, ForwardTemperatureDataToSystemDataManager)
๐ŸŒก Forward Temperature Data
Global TEST_F (DataManagerTest, ForwardIpAddressDataToSystemDataManager)
๐ŸŒ Forward IP Address Data
Global TEST_F (DataManagerTest, ForwardBatteryPercentageToSystemDataManager)
๐Ÿ”‹ Forward Battery Percentage
Global TEST_F (DataManagerTest, ForwardMileageUpdateToVehicleDataManager)
๐Ÿš˜ Forward Mileage Update
Global TEST_F (DataManagerTest, ToggleDrivingMode)
๐ŸŽ› Toggle Driving Mode
Global TEST_F (DataManagerTest, ToggleClusterTheme)
๐ŸŽจ Toggle Cluster Theme
Global TEST_F (DataManagerTest, ToggleClusterMetrics)
๐Ÿ“Š Toggle Cluster Metrics
Global TEST_F (MileageManagerTest, ForwardMileageData)
๐Ÿ”„ Forward Mileage Data
Global TEST_F (MileageManagerTest, InitializeMileageManager)
๐Ÿš— Initialize Mileage Manager
Global TEST_F (MileageManagerTest, UpdateMileageOnSpeedUpdate)
๐ŸŽ๏ธ๐Ÿ’จ Update Mileage on Speed Update
Global TEST_F (MileageManagerTest, SaveMileage)
๐Ÿ’พ Save Mileage
Global TEST_F (MileageManagerTest, UpdateTimerInterval)
โฑ Update Timer Interval
Global TEST_F (MileageManagerTest, ShutdownMileageManager)
โป Shutdown Mileage Manager
Global TEST_F (SystemManagerTest, UpdateTimeSignal)
๐Ÿš€ Initialize System Manager
Global TEST_F (SystemManagerTest, UpdateWifiStatusSignal)
๐Ÿ“ถ Update Wifi Status Signal
Global TEST_F (SystemManagerTest, UpdateTemperatureSignal)
๐ŸŒก Update Temperature Signal
Global TEST_F (SystemManagerTest, UpdateBatteryPercentageSignal)
๐Ÿ”‹ Update Battery Percentage Signal
Global TEST_F (SystemManagerTest, UpdateIpAddressSignal)
๐ŸŒ Update IP Address Signal
Global TEST_F (SystemManagerTest, ShutdownSystemManager)
๐Ÿš€ Shutdown System Manager
Global TEST_F (RS485CANTest, DataFrameTest)
Tests the initialization of the MCP2515 controller.
Global TEST_F (RS485CANTest, RemoteFrameTest)
Tests the initialization of the MCP2515 controller.
Global TEST_F (RS485CANTest, ErrorFrameTest)
Tests the initialization of the MCP2515 controller.
Global TEST_F (RS485CANTest, MaxBusSpeedTest)
Tests the initialization of the MCP2515 controller.
Global TEST_F (RS485CANTest, MinBusSpeedTest)
Tests the initialization of the MCP2515 controller.
Global TEST_F (CanBusManagerTest, SpeedSignalEmitsCorrectly)
Tests if the speedUpdated signal is emitted correctly.
Global TEST_F (CanBusManagerTest, RpmSignalEmitsCorrectly)
Tests if the rpmUpdated signal is emitted correctly.
Global TEST_F (CanBusManagerTest, InitializeFailsWhenControllerFails)
Tests CanBusManager::initialize() when init() fails.
Global TEST_F (CanBusManagerTest, InitializeSucceedsWhenControllerSucceeds)
Tests CanBusManager::initialize() when init() succeeds.
Global TEST_F (CanBusManagerTest, DestructorCallsStopReading)
Ensures that stopReading() is called when CanBusManager is destroyed.
Global TEST_F (CANMessageProcessorTest, RegisterHandlerSuccess)
Tests if a handler can be registered successfully.
Global TEST_F (CANMessageProcessorTest, RegisterHandlerNullThrowsException)
Tests if registering a null handler throws an exception.
Global TEST_F (CANMessageProcessorTest, ProcessMessageWithRegisteredHandler)
Tests if a message is processed with a registered handler.
Global TEST_F (CANMessageProcessorTest, ProcessMessageWithUnregisteredHandlerThrowsException)
Tests if processing a message with an unregistered handler throws an exception.
Global TEST_F (CANMessageProcessorTest, OverwriteHandlerForSameFrameID)
Tests if a handler can be overwritten for the same frame ID.
Global TEST_F (MCP2515ConfiguratorTest, ResetChipSuccess)
Tests if the chip reset is successful.
Global TEST_F (MCP2515ConfiguratorTest, ResetChipFailure)
Tests if the chip reset fails.
Global TEST_F (MCP2515ConfiguratorTest, ConfigureBaudRate)
Tests if the baud rate is configured correctly.
Global TEST_F (MCP2515ConfiguratorTest, ConfigureTXBuffer)
Tests if the TX buffer is configured correctly.
Global TEST_F (MCP2515ConfiguratorTest, ConfigureRXBuffer)
Tests if the RX buffer is configured correctly.
Global TEST_F (MCP2515ConfiguratorTest, ConfigureFiltersAndMasks)
Tests if the filters and masks are configured correctly.
Global TEST_F (MCP2515ConfiguratorTest, ConfigureInterrupts)
Tests if the interrupts are configured correctly.
Global TEST_F (MCP2515ConfiguratorTest, SetMode)
Tests if the mode is set correctly.
Global TEST_F (MCP2515ConfiguratorTest, VerifyModeSuccess)
Tests if the mode verification is successful.
Global TEST_F (MCP2515ConfiguratorTest, VerifyModeFailure)
Tests if the mode verification fails.
Global TEST_F (MCP2515ConfiguratorTest, ReadCANMessageWithData)
Tests if a CAN message with data is read correctly.
Global TEST_F (MCP2515ConfiguratorTest, ReadCANMessageNoData)
Tests if a CAN message with no data is read correctly.
Global TEST_F (MCP2515ControllerTest, InitializationSuccess)
Tests if the initialization is successful.
Global TEST_F (MCP2515ControllerTest, InitializationFailure)
Tests if the initialization fails.
Global TEST_F (MCP2515ControllerTest, SetupHandlersTest)
Tests if handlers are set up correctly.
Global TEST_F (MCP2515ControllerTest, SpeedUpdatedSignal)
Tests if the speedUpdated signal is emitted correctly.
Global TEST_F (MCP2515ControllerTest, RpmUpdatedSignal)
Tests if the rpmUpdated signal is emitted correctly.
Global TEST_F (MCP2515ControllerTest, ProcessReadingCallsHandlers)
Tests if processReading() calls handlers correctly.
Global TEST_F (MCP2515ControllerTest, StopReadingStopsProcessing)
Tests if stopReading() stops the processing.
Global TEST_F (SPIControllerTest, OpenDeviceSuccess)
Tests if the device opens successfully.
Global TEST_F (SPIControllerTest, OpenDeviceFailure)
Tests if the device fails to open.
Global TEST_F (SPIControllerTest, ConfigureSPIValidParameters)
Tests if the SPI configuration is successful with valid parameters.
Global TEST_F (SPIControllerTest, WriteByteSuccess)
Tests if writing a byte is successful.
Global TEST_F (SPIControllerTest, ReadByteSuccess)
Tests if reading a byte is successful.
Global TEST_F (SPIControllerTest, SpiTransferSuccess)
Tests if SPI transfer is successful.
Global TEST_F (SPIControllerTest, CloseDeviceSuccess)
Tests if the device closes successfully.
Global TEST_F (ClusterSettingsManagerTest, ToggleDrivingModeEmitsSignal)
Tests if the driving mode can be toggled.
Global TEST_F (ClusterSettingsManagerTest, ToggleClusterThemeEmitsSignal)
Tests if the cluster theme can be toggled.
Global TEST_F (ClusterSettingsManagerTest, ToggleClusterMetricsEmitsSignal)
Tests if the cluster metrics can be toggled.
Global TEST_F (SystemDataManagerTest, TimeDataEmitsSignal)
Tests if the time data emits a signal.
Global TEST_F (SystemDataManagerTest, WifiDataEmitsSignalOnChange)
Tests if the time data emits a signal when changed.
Global TEST_F (SystemDataManagerTest, TemperatureDataEmitsSignalOnChange)
Tests if the temperature data emits a signal when changed.
Global TEST_F (SystemDataManagerTest, IpAddressEmitsSignalOnChange)
Tests if the IP address emits a signal when changed.
Global TEST_F (SystemDataManagerTest, BatteryPercentageEmitsSignalOnChange)
Tests if the battery percentage emits a signal when changed.
Global TEST_F (VehicleDataManagerTest, RpmDataEmitsSignal)
Tests if the RPM data emits a signal when changed.
Global TEST_F (VehicleDataManagerTest, SpeedDataEmitsSignalInKilometers)
Tests if the speed data emits a signal when changed.
Global TEST_F (VehicleDataManagerTest, MileageDataEmitsSignalOnChange)
Tests if the mileage data emits a signal when changed.
Global TEST_F (VehicleDataManagerTest, DirectionDataEmitsSignalOnChange)
Tests if the direction data emits a signal when changed.
Global TEST_F (VehicleDataManagerTest, SteeringDataEmitsSignalOnChange)
Tests if the steering data emits a signal when changed.
Global TEST_F (MileageCalculatorTest, AddSpeed_DoesNotCrash)
Tests if the mileage calculator does not crash when adding speeds.
Global TEST_F (MileageCalculatorTest, CalculateDistance_NoSpeeds_ReturnsZero)
Tests if the mileage calculator calculates the distance correctly.
Global TEST_F (MileageCalculatorTest, CalculateDistance_ZeroSpeed_ReturnsZero)
Tests if the mileage calculator calculates the distance correctly.
Global TEST_F (MileageCalculatorTest, CalculateDistance_BasicCalculation)
Tests if the mileage calculator calculates the distance correctly.
Global TEST_F (MileageCalculatorTest, CalculateDistance_MultipleSpeeds)
Tests if the mileage calculator calculates the distance correctly.
Global TEST_F (MileageFileHandlerTest, EnsureFileExists_FileDoesNotExist_CreatesFileWithZeroMileage)
Tests if the mileage file handler creates the file if it does not exist.
Global TEST_F (MileageFileHandlerTest, ReadMileage_ValidNumber_ReturnsParsedValue)
Tests if the mileage file handler does not create the file if it already exists.
Global TEST_F (MileageFileHandlerTest, ReadMileage_InvalidNumber_ReturnsZero)
Tests if the mileage file handler reads zero mileage if the file is empty.
Global TEST_F (MileageFileHandlerTest, WriteMileage_ValidNumber_WritesToFile)
Tests if the mileage file handler writes the mileage to the file.
Global TEST_F (MileageManagerTest, Initialize_LoadsMileageFromFile)
Tests if the mileage manager initializes correctly.
Global TEST_F (MileageManagerTest, OnSpeedUpdated_CallsCalculator)
Test OnSpeedUpdated method.
Global TEST_F (MileageManagerTest, UpdateMileage_EmitsMileageUpdatedSignal)
Test UpdateMileage method.
Global TEST_F (MileageManagerTest, SaveMileage_CallsFileHandler)
Test SaveMileage method.
Global TEST_F (BatteryControllerTest, Initialization_CallsCalibration)
Tests if the battery controller initializes correctly.
Global TEST_F (BatteryControllerTest, GetBatteryPercentage_CorrectCalculation)
Tests if the battery percentage is calculated correctly.
Global TEST_F (SystemInfoProviderTest, GetWifiStatus_Connected)
Tests if the wifi status is correctly retrieved.
Global TEST_F (SystemInfoProviderTest, GetWifiStatus_Disconnected)
Tests if the wifi status is correctly retrieved when disconnected.
Global TEST_F (SystemInfoProviderTest, GetWifiStatus_NoInterface)
Tests if the wifi status is correctly retrieved when no interface is detected.
Global TEST_F (SystemInfoProviderTest, GetTemperature_ValidReading)
Tests if the wifi status is correctly retrieved when the wifi name is empty.
Global TEST_F (SystemInfoProviderTest, GetTemperature_InvalidReading)
Tests if the temperature is correctly retrieved when the reading is invalid.
Global TEST_F (SystemInfoProviderTest, GetIpAddress_Valid)
Tests if the IP address is correctly retrieved.
Global TEST_F (SystemInfoProviderTest, GetIpAddress_NoIP)
Tests if the IP address is correctly retrieved when no IP address is found.
Global TEST_F (SystemManagerTest, UpdateTime_EmitsCorrectSignal)
Tests if the time is correctly updated.
Global TEST_F (SystemManagerTest, UpdateSystemStatus_EmitsWifiStatus)
Tests if the system status is correctly updated.
Global TEST_F (SystemManagerTest, UpdateSystemStatus_EmitsTemperature)
Tests if the system status is correctly updated.
Global TEST_F (SystemManagerTest, UpdateSystemStatus_EmitsBatteryPercentage)
Tests if the system status is correctly updated.
Global TEST_F (SystemManagerTest, UpdateSystemStatus_EmitsIpAddress)
Tests if the system status is correctly updated.