move sentry code around and add a stub unittest for it
This commit is contained in:
@ -45,6 +45,7 @@ set (SOURCES
|
||||
IXCobraMetricsPublisherTest.cpp
|
||||
IXDNSLookupTest.cpp
|
||||
IXWebSocketSubProtocolTest.cpp
|
||||
IXSentryClientTest.cpp
|
||||
)
|
||||
|
||||
# Some unittest don't work on windows yet
|
||||
@ -83,5 +84,6 @@ target_link_libraries(ixwebsocket_unittest ixcobra)
|
||||
target_link_libraries(ixwebsocket_unittest ixwebsocket)
|
||||
target_link_libraries(ixwebsocket_unittest ixcrypto)
|
||||
target_link_libraries(ixwebsocket_unittest ixcore)
|
||||
target_link_libraries(ixwebsocket_unittest ixsentry)
|
||||
|
||||
install(TARGETS ixwebsocket_unittest DESTINATION bin)
|
||||
|
30
test/IXSentryClientTest.cpp
Normal file
30
test/IXSentryClientTest.cpp
Normal file
@ -0,0 +1,30 @@
|
||||
/*
|
||||
* IXSentryClientTest.cpp
|
||||
* Author: Benjamin Sergeant
|
||||
* Copyright (c) 2019 Machine Zone. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "IXTest.h"
|
||||
#include "catch.hpp"
|
||||
#include <iostream>
|
||||
#include <string.h>
|
||||
|
||||
using namespace ix;
|
||||
|
||||
namespace ix
|
||||
{
|
||||
TEST_CASE("sentry", "[sentry]")
|
||||
{
|
||||
SECTION("Attempt to perform nil")
|
||||
{
|
||||
#if 0
|
||||
SentryClient sentryClient;
|
||||
std::string stack = "";
|
||||
auto frames = sentryClient.parseLuaStackTrace(stack);
|
||||
|
||||
REQUIRE(frames.size() > 0);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace ix
|
Reference in New Issue
Block a user