From 27c669066a2a01d41a397bbc7fdcafdad50d8cf6 Mon Sep 17 00:00:00 2001 From: ismail Date: Tue, 11 Feb 2025 17:45:17 +0300 Subject: [PATCH] Add headers and test functions, fix gpio definition --- test/main/relay_chn_test.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/test/main/relay_chn_test.c b/test/main/relay_chn_test.c index 03123be..a54529a 100644 --- a/test/main/relay_chn_test.c +++ b/test/main/relay_chn_test.c @@ -1,8 +1,10 @@ +#include "driver/gpio.h" #include "unity.h" +#include "unity_test_utils.h" #include "relay_chn.h" -const gpip_num_t gpio_map[] = {GPIO_NUM_4, GPIO_NUM_5, GPIO_NUM_18, GPIO_NUM_19}; +const gpio_num_t gpio_map[] = {GPIO_NUM_4, GPIO_NUM_5, GPIO_NUM_18, GPIO_NUM_19}; const uint8_t gpio_count = sizeof(gpio_map) / sizeof(gpio_map[0]); const uint8_t relay_chn_count = gpio_count / 2; @@ -75,6 +77,15 @@ TEST_CASE("Relay channels do not change state for invalid channel", "[relay_chn] } +void setUp(void) +{ + // Run before each test +} + +void tearDown(void) +{ + // Run after each test +} // Test app entry point void app_main(void)