support Unity testing

This commit is contained in:
proddy
2024-08-01 22:13:52 +02:00
parent 4ec5739b67
commit b38ec2f25e
16 changed files with 598 additions and 285 deletions

View File

@@ -34,9 +34,11 @@ class WebAPIService {
void webAPIService(AsyncWebServerRequest * request, JsonVariant json);
#ifdef EMSESP_TEST
// for test.cpp
void webAPIService(AsyncWebServerRequest * request);
#if defined(EMSESP_TEST)
// for test.cpp and running unit tests
void webAPIService(AsyncWebServerRequest * request);
void storeResponse(JsonObject response);
const char * getResponse();
#endif
static uint32_t api_count() {