test: add some test and fix some bugs

This commit is contained in:
Nick Peng
2023-03-15 23:57:25 +08:00
parent a14d4a0451
commit 2e3e03bfda
9 changed files with 272 additions and 89 deletions

View File

@@ -3,7 +3,7 @@
#include "server.h"
#include "gtest/gtest.h"
TEST(server, mock)
TEST(MockServer, query_fail)
{
smartdns::MockServer server;
smartdns::Client client;