Integration tests for the CanBusManager class. More...
#include <QCoreApplication>
#include <QDebug>
#include <QSignalSpy>
#include "CanBusManager.hpp"
#include "MCP2515Controller.hpp"
#include <gtest/gtest.h>
Go to the source code of this file.
Data Structures | |
class | CanBusManagerTest |
Class to test the integration between the CanBusManager and the MCP2515 controller. More... | |
Functions | |
TEST_F (CanBusManagerTest, ForwardSpeedDataFromMCP2515) | |
Ensures that the CanBusManager forwards speed data from the MCP2515 controller. | |
TEST_F (CanBusManagerTest, ForwardRpmDataFromMCP2515) | |
Ensures that the CanBusManager forwards RPM data from the MCP2515 controller. | |
TEST_F (CanBusManagerTest, InitializeCanBusManager) | |
Ensures that the CanBusManager initializes successfully. | |
TEST_F (CanBusManagerTest, ManagerCleanUpBehavior) | |
Ensures that the CanBusManager cleans up properly. | |
Integration tests for the CanBusManager class.
Definition in file test_int_CanBusManager.cpp.
TEST_F | ( | CanBusManagerTest | , |
ForwardRpmDataFromMCP2515 | ) |
Ensures that the CanBusManager forwards RPM data from the MCP2515 controller.
This test verifies that the CanBusManager forwards RPM data from the MCP2515 controller by emitting the rpmUpdated signal.
Definition at line 90 of file test_int_CanBusManager.cpp.
TEST_F | ( | CanBusManagerTest | , |
ForwardSpeedDataFromMCP2515 | ) |
Ensures that the CanBusManager forwards speed data from the MCP2515 controller.
This test verifies that the CanBusManager forwards speed data from the MCP2515 controller by emitting the speedUpdated signal.
Definition at line 70 of file test_int_CanBusManager.cpp.
TEST_F | ( | CanBusManagerTest | , |
InitializeCanBusManager | ) |
Ensures that the CanBusManager initializes successfully.
This test verifies that the CanBusManager initializes successfully by calling the initialize() method.
Definition at line 109 of file test_int_CanBusManager.cpp.
TEST_F | ( | CanBusManagerTest | , |
ManagerCleanUpBehavior | ) |
Ensures that the CanBusManager cleans up properly.
This test verifies that the CanBusManager cleans up properly by deleting the manager and checking if the thread was deleted.
Definition at line 122 of file test_int_CanBusManager.cpp.