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

Unit tests for the SystemDataManager class. More...

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

Go to the source code of this file.

Data Structures

class  SystemDataManagerTest
 Test fixture for testing the SystemDataManager class. More...
 

Functions

 TEST_F (SystemDataManagerTest, TimeDataEmitsSignal)
 Ensures that the time data emits a signal when received.
 
 TEST_F (SystemDataManagerTest, WifiDataEmitsSignalOnChange)
 Ensures that the time data emits a signal when changed.
 
 TEST_F (SystemDataManagerTest, TemperatureDataEmitsSignalOnChange)
 Ensures that the temperature data emits a signal when changed.
 
 TEST_F (SystemDataManagerTest, IpAddressEmitsSignalOnChange)
 Ensures that the IP address emits a signal when changed.
 
 TEST_F (SystemDataManagerTest, BatteryPercentageEmitsSignalOnChange)
 Ensures that the battery percentage emits a signal when changed.
 

Detailed Description

Unit tests for the SystemDataManager class.

Version
0.1
Date
2025-02-12

This file contains unit tests for the SystemDataManager 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_SystemDataManager.cpp.

Function Documentation

◆ TEST_F() [1/5]

TEST_F ( SystemDataManagerTest ,
BatteryPercentageEmitsSignalOnChange  )

Ensures that the battery percentage emits a signal when changed.

Test
Tests if the battery percentage emits a signal when changed.

This test verifies that the battery percentage emits a signal when changed.

See also
SystemDataManager::handleBatteryPercentage

Definition at line 147 of file test_SystemDataManager.cpp.

Here is the call graph for this function:

◆ TEST_F() [2/5]

TEST_F ( SystemDataManagerTest ,
IpAddressEmitsSignalOnChange  )

Ensures that the IP address emits a signal when changed.

Test
Tests if the IP address emits a signal when changed.

This test verifies that the IP address emits a signal when changed.

See also
SystemDataManager::handleIpAddressData

Definition at line 122 of file test_SystemDataManager.cpp.

Here is the call graph for this function:

◆ TEST_F() [3/5]

TEST_F ( SystemDataManagerTest ,
TemperatureDataEmitsSignalOnChange  )

Ensures that the temperature data emits a signal when changed.

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

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

See also
SystemDataManager::handleTemperatureData

Definition at line 97 of file test_SystemDataManager.cpp.

Here is the call graph for this function:

◆ TEST_F() [4/5]

TEST_F ( SystemDataManagerTest ,
TimeDataEmitsSignal  )

Ensures that the time data emits a signal when received.

Test
Tests if the time data emits a signal.

This test verifies that the time data emits a signal when received.

See also
SystemDataManager::handleTimeData

Definition at line 45 of file test_SystemDataManager.cpp.

Here is the call graph for this function:

◆ TEST_F() [5/5]

TEST_F ( SystemDataManagerTest ,
WifiDataEmitsSignalOnChange  )

Ensures that the time data emits a signal when changed.

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

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

See also
SystemDataManager::handleTimeData

Definition at line 70 of file test_SystemDataManager.cpp.

Here is the call graph for this function: