Add working unit tests

This commit is contained in:
Jaakko Haakana 2025-07-26 15:19:49 +03:00
parent f609d54a14
commit 995cc7784c
106 changed files with 589 additions and 582 deletions

20
test/emul/can.cpp Normal file
View file

@ -0,0 +1,20 @@
#include "../../Software/src/communication/Transmitter.h"
#include "../../Software/src/communication/can/comm_can.h"
void transmit_can_frame_to_interface(CAN_frame* tx_frame, int interface) {}
void register_can_receiver(CanReceiver* receiver, CAN_Interface interface, CAN_Speed speed) {}
CAN_Speed change_can_speed(CAN_Interface interface, CAN_Speed speed) {
return CAN_Speed::CAN_SPEED_500KBPS;
}
void stop_can() {}
void restart_can() {}
char const* getCANInterfaceName(CAN_Interface) {
return "Foobar";
}
void register_transmitter(Transmitter* transmitter) {}