tests: investigating catch2
[awesomized/libmemcached] / testing / lib / random_.hpp
1 #pragma once
2
3 #include <string>
4 #include <tuple>
5 #include "Server.hpp"
6
7 using namespace std;
8
9 unsigned random_num(unsigned min, unsigned max);
10 unsigned random_port();
11 string random_socket();
12 string random_socket_or_port_string(const string &what);
13 string random_socket_or_port_flag();
14
15 inline Server::dyn_args_t::value_type random_socket_or_port_arg() {
16 return {random_socket_or_port_flag(), &random_socket_or_port_string};
17 }