feat(eventsub): add basic parse tests and benchmark (#5952)

This commit is contained in:
nerix
2025-02-12 22:45:13 +01:00
committed by GitHub
parent d0cf6c4717
commit 9c96dd53c7
33 changed files with 1489 additions and 83 deletions
@@ -0,0 +1,23 @@
project(twitch-eventsub-ws-test)
set(SOURCES
src/parse.cpp
)
add_executable(${PROJECT_NAME} ${SOURCES})
add_sanitizers(${PROJECT_NAME})
target_link_libraries(${PROJECT_NAME} PRIVATE twitch-eventsub-ws GTest::gtest_main)
set_target_properties(${PROJECT_NAME}
PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
CXX_STANDARD 20
)
if(MSVC)
target_compile_options(${PROJECT_NAME} PRIVATE /EHsc /bigobj)
endif()
include(GoogleTest)
gtest_discover_tests(${PROJECT_NAME})