#include "test_common.hpp"
#include "test_generators.hpp"
#include <set>
#include <vector>
#include <openvpn/addr/addrlist.hpp>
Go to the source code of this file.
◆ add() [1/2]
◆ add() [2/2]
◆ for()
| for |
( |
const auto &addr :addrs |
| ) |
|
◆ RC_ASSERT() [1/4]
| RC_ASSERT |
( |
address_list. |
existsaddress | ) |
|
◆ RC_ASSERT() [2/4]
| RC_ASSERT |
( |
list. |
existsprobe = =expected | ) |
|
◆ RC_ASSERT() [3/4]
| RC_ASSERT |
( |
list. |
size() = =1U | ) |
|
◆ RC_ASSERT() [4/4]
◆ unique_addrs()
| const std::set unique_addrs |
( |
addrs. |
begin(), |
|
|
addrs. |
end() |
|
) |
| |
Initial value:{
const auto addrs = *rc::gen::container<std::vector<openvpn::IP::Addr>>(
rc::genIPAddr())
auto genIPAddr() -> Gen< openvpn::IP::Addr >
◆ addr
◆ address
◆ expected
| const bool expected = unique_addrs.contains(probe) |
◆ list
◆ probe