MCPcopy Create free account
hub / github.com/Haivision/srt / TEST

Function TEST

test/test_common.cpp:46–52  ·  view source on GitHub ↗

Example IPv4 address: 192.168.0.1

Source from the content-addressed store, hash-verified

44
45// Example IPv4 address: 192.168.0.1
46TEST(CIPAddress, IPv4_pton)
47{
48 srt::TestInit srtinit;
49 const char* peer_ip = "192.168.0.1";
50 const uint32_t ip[4] = {htobe32(0xC0A80001), 0, 0, 0};
51 test_cipaddress_pton(peer_ip, AF_INET, ip);
52}
53
54// Example IPv6 address: 2001:db8:85a3:8d3:1319:8a2e:370:7348
55TEST(CIPAddress, IPv6_pton)

Callers

nothing calls this directly

Calls 3

test_cipaddress_ptonFunction · 0.85
srt_setloglevelFunction · 0.85
testCookieContestFunction · 0.85

Tested by

no test coverage detected