20RC_GTEST_PROP(AddrList, AddMarksAddressAsExisting, ())
28RC_GTEST_PROP(AddrList, AddIsIdempotent, ())
38RC_GTEST_PROP(AddrList, AddDistinctAddressesKeepsUniqueCount, ())
40 const auto addrs = *rc::gen::container<std::vector<openvpn::IP::Addr>>(
rc::genIPAddr());
43 for (
const auto &
addr : addrs)
50RC_GTEST_PROP(AddrList, ExistsMatchesMembership, ())
52 const auto addrs = *rc::gen::container<std::vector<openvpn::IP::Addr>>(
rc::genIPAddr());
55 for (
const auto &
addr : addrs)
bool exists(const Addr &a) const
auto genIPAddr() -> Gen< openvpn::IP::Addr >
RC_ASSERT(address_list.exists(address))
const std::set unique_addrs(addrs.begin(), addrs.end())
openvpn::IP::AddrList list