| 156 | } |
| 157 | |
| 158 | void testAmsRouterSetLocalAddress(const std::string &) |
| 159 | { |
| 160 | const AmsNetId newNetId{ 1, 2, 3, 4, 5, 6 }; |
| 161 | AmsRouter testee; |
| 162 | AmsAddr changed; |
| 163 | AmsAddr empty; |
| 164 | |
| 165 | const auto port = testee.OpenPort(); |
| 166 | fructose_assert(0 == testee.GetLocalAddress(port, &empty)); |
| 167 | fructose_assert(!empty.netId); |
| 168 | |
| 169 | testee.SetLocalAddress(newNetId); |
| 170 | fructose_assert(0 == testee.GetLocalAddress(port, &changed)); |
| 171 | fructose_assert(0 == memcmp(&newNetId, &changed.netId, |
| 172 | sizeof(newNetId))); |
| 173 | fructose_assert(port == changed.port); |
| 174 | } |
| 175 | |
| 176 | void testConcurrentRoutes(const std::string &) |
| 177 | { |
nothing calls this directly
no test coverage detected