test: add test cases

This commit is contained in:
Nick Peng
2023-03-26 00:27:40 +08:00
parent 56d711a796
commit c90a85dfc7
25 changed files with 1177 additions and 39 deletions

View File

@@ -71,6 +71,8 @@ class Client
int GetAnswerNum();
int GetAuthorityNum();
std::string GetStatus();
std::string GetServer();
@@ -90,7 +92,7 @@ class Client
bool ParserRecord(const std::string &record_str, std::vector<DNSRecord> &record);
std::string result_;
int answer_num_{0};
int records_authority_num_{0};
int authority_num_{0};
std::string status_;
std::string server_;
int query_time_{0};