38 lines
497 B
C++
38 lines
497 B
C++
/*
|
|
* Author: username
|
|
* Date: todays_date
|
|
* filename: test_LedController.c
|
|
* description: module_purpose
|
|
*/
|
|
|
|
#include "CppUTest/CommandLineTestRunner.h"
|
|
|
|
extern "C"
|
|
{
|
|
#include "LedController.h"
|
|
}
|
|
|
|
TEST_GROUP(test_LedController)
|
|
{
|
|
void setup()
|
|
{
|
|
|
|
}
|
|
void teardown()
|
|
{
|
|
|
|
}
|
|
};
|
|
|
|
|
|
TEST(test_LedController, LedController_SetHigh)
|
|
{
|
|
uint8_t fake_port = 0x00;
|
|
|
|
Led fake_led;
|
|
fake_led.port = &fake_port;
|
|
fake_led.pin_num = 0;
|
|
fake_led.state = false;
|
|
|
|
}
|