MCPcopy Create free account
hub / github.com/catboost/catboost / TestIpToString

Method TestIpToString

util/network/ip_ut.cpp:55–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void 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}

Callers

nothing calls this directly

Calls 1

IpToStringFunction · 0.85

Tested by

no test coverage detected