MCPcopy Create free account
hub / github.com/defold/defold / TEST_F

Function TEST_F

engine/engine/src/test/test_engine_service.cpp:18–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16#include "../engine_service_private.h"
17
18TEST_F(EngineTest, ServiceInstanceNameSanitizesAddress)
19{
20 char out[64];
21 dmEngineService::BuildServiceInstanceName("Local Host", "8001", 0, out, sizeof(out));
22 ASSERT_STREQ("defold-local-host-8001", out);
23}
24
25TEST_F(EngineTest, SanitizeMDNSLabelReplacesLeadingDashWhenRequested)
26{

Callers

nothing calls this directly

Calls 5

BuildServiceInstanceNameFunction · 0.85
SanitizeMDNSLabelFunction · 0.85
BuildDiscoveryIdentityFunction · 0.85

Tested by

no test coverage detected