Fixes to unit tests to work on native platform
This commit is contained in:
@@ -2,6 +2,14 @@
|
||||
#include <Arduino.h>
|
||||
#include "PacketCRC.h"
|
||||
|
||||
void setUp()
|
||||
{
|
||||
}
|
||||
|
||||
void tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
void run_calculate_test(const uint8_t *packet_data, const uint16_t expected_checksum)
|
||||
{
|
||||
PacketCRC packetCRC;
|
||||
@@ -82,4 +90,9 @@ void setup()
|
||||
|
||||
runUnityTests();
|
||||
}
|
||||
void loop() {}
|
||||
void loop() {}
|
||||
|
||||
int main(void)
|
||||
{
|
||||
return runUnityTests();
|
||||
}
|
||||
@@ -2,7 +2,15 @@
|
||||
#include <Arduino.h>
|
||||
#include "PacketParser.h"
|
||||
|
||||
void run_parse_test(const uint8_t *packet_data, Packet& packet)
|
||||
void setUp()
|
||||
{
|
||||
}
|
||||
|
||||
void tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
void run_parse_test(const uint8_t *packet_data, Packet &packet)
|
||||
{
|
||||
PacketParser packetParser;
|
||||
|
||||
@@ -66,3 +74,8 @@ void setup()
|
||||
runUnityTests();
|
||||
}
|
||||
void loop() {}
|
||||
|
||||
int main(void)
|
||||
{
|
||||
return runUnityTests();
|
||||
}
|
||||
Reference in New Issue
Block a user