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

Function TEST

engine/resource/src/test/test_resource.cpp:975–982  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

973
974#if defined(DM_TEST_HTTP_SUPPORTED)
975TEST(dmResource, InvalidHost)
976{
977 dmResource::NewFactoryParams params;
978 params.m_MaxResources = 16;
979 params.m_Flags = RESOURCE_FACTORY_FLAGS_RELOAD_SUPPORT;
980 dmResource::HFactory factory = dmResource::NewFactory(&params, "http://foo_host");
981 ASSERT_EQ((void*) 0, factory);
982}
983
984TEST(dmResource, InvalidUri)
985{

Callers

nothing calls this directly

Calls 15

NewFactoryFunction · 0.85
RegisterTypeFunction · 0.85
DeleteFactoryFunction · 0.85
GetTypeFromExtensionFunction · 0.85
MakeHostPathfFunction · 0.85
ReloadResourceFunction · 0.85
UpdateFactoryFunction · 0.85
dmAtomicGet32Function · 0.85
RegisterTypesFunction · 0.85

Tested by

no test coverage detected