| 53 | } |
| 54 | |
| 55 | void TSysIpTest::TestIpToString() { |
| 56 | ui8 ipArr[][4] = {{192, 168, 0, 1}, {87, 255, 18, 167}, {255, 255, 0, 31}, {188, 225, 124, 255}}; |
| 57 | |
| 58 | const char* ipStr[] = {"192.168.0.1", "87.255.18.167", "255.255.0.31", "188.225.124.255"}; |
| 59 | |
| 60 | for (size_t i = 0; i < Y_ARRAY_SIZE(ipStr); ++i) { |
| 61 | UNIT_ASSERT(IpToString(*reinterpret_cast<TIpHost*>(&(ipArr[i]))) == ipStr[i]); |
| 62 | } |
| 63 | } |
nothing calls this directly
no test coverage detected