test: add test case for performance

This commit is contained in:
Nick Peng
2023-03-19 14:26:46 +08:00
parent 455dca9ae4
commit aa6f6fd519
10 changed files with 307 additions and 55 deletions

View File

@@ -20,6 +20,7 @@
#define _SMARTDNS_TEST_UTILS_
#include <functional>
#include <string>
namespace smartdns
{
@@ -55,5 +56,9 @@ class DeferGuard
#define SMARTDNS_CONCAT(a, b) SMARTDNS_CONCAT_(a, b)
#define Defer ::smartdns::DeferGuard SMARTDNS_CONCAT(__defer__, __LINE__) = [&]()
bool IsCommandExists(const std::string &cmd);
std::string GenerateRandomString(int len);
} // namespace smartdns
#endif // _SMARTDNS_TEST_UTILS_