Hotwheels-Cluster 1.2
Creation of Cluster APP for SEA:ME project.
 
Loading...
Searching...
No Matches
test_VehicleDataManager.cpp File Reference

Unit tests for the VehicleDataManager class. More...

#include <QSignalSpy>
#include "VehicleDataManager.hpp"
#include <gtest/gtest.h>

Go to the source code of this file.

Data Structures

class  VehicleDataManagerTest
 Test fixture for testing the VehicleDataManager class. More...
 

Functions

 TEST_F (VehicleDataManagerTest, RpmDataEmitsSignal)
 Ensures that the RPM data emits a signal when changed.
 
 TEST_F (VehicleDataManagerTest, SpeedDataEmitsSignalInKilometers)
 Ensures that the speed data emits a signal when changed.
 
 TEST_F (VehicleDataManagerTest, MileageDataEmitsSignalOnChange)
 Ensures that the mileage data emits a signal when changed.
 
 TEST_F (VehicleDataManagerTest, DirectionDataEmitsSignalOnChange)
 Ensures that the direction data emits a signal when changed.
 
 TEST_F (VehicleDataManagerTest, SteeringDataEmitsSignalOnChange)
 Ensures that the steering data emits a signal when changed.
 

Detailed Description

Unit tests for the VehicleDataManager class.

Version
0.1
Date
2025-02-12

This file contains unit tests for the VehicleDataManager class, using Google Test and Google Mock frameworks.

Author
Félix LE BIHAN (@Fle-bihh)
Tiago Pereira (@t-pereira06)
Ricardo Melo (@reomelo)
Michel Batista (@MicchelFAB)

Definition in file test_VehicleDataManager.cpp.

Function Documentation

◆ TEST_F() [1/5]

TEST_F ( VehicleDataManagerTest ,
DirectionDataEmitsSignalOnChange  )

Ensures that the direction data emits a signal when changed.

Test
Tests if the direction data emits a signal when changed.

This test verifies that the direction data emits a signal when changed.

See also
VehicleDataManager::handleDirectionData

Definition at line 114 of file test_VehicleDataManager.cpp.

Here is the call graph for this function:

◆ TEST_F() [2/5]

TEST_F ( VehicleDataManagerTest ,
MileageDataEmitsSignalOnChange  )

Ensures that the mileage data emits a signal when changed.

Test
Tests if the mileage data emits a signal when changed.

This test verifies that the mileage data emits a signal when changed.

See also
VehicleDataManager::handleMileageUpdate

Definition at line 89 of file test_VehicleDataManager.cpp.

Here is the call graph for this function:

◆ TEST_F() [3/5]

TEST_F ( VehicleDataManagerTest ,
RpmDataEmitsSignal  )

Ensures that the RPM data emits a signal when changed.

Test
Tests if the RPM data emits a signal when changed.

This test verifies that the RPM data emits a signal when changed.

See also
VehicleDataManager::handleRpmData

Definition at line 45 of file test_VehicleDataManager.cpp.

Here is the call graph for this function:

◆ TEST_F() [4/5]

TEST_F ( VehicleDataManagerTest ,
SpeedDataEmitsSignalInKilometers  )

Ensures that the speed data emits a signal when changed.

Test
Tests if the speed data emits a signal when changed.

This test verifies that the speed data emits a signal when changed.

See also
VehicleDataManager::handleSpeedData

Definition at line 67 of file test_VehicleDataManager.cpp.

Here is the call graph for this function:

◆ TEST_F() [5/5]

TEST_F ( VehicleDataManagerTest ,
SteeringDataEmitsSignalOnChange  )

Ensures that the steering data emits a signal when changed.

Test
Tests if the steering data emits a signal when changed.

This test verifies that the steering data emits a signal when changed.

See also
VehicleDataManager::handleSteeringData

Definition at line 140 of file test_VehicleDataManager.cpp.

Here is the call graph for this function: