test: add test case for performance
This commit is contained in:
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user