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

Method SetUp

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

Source from the content-addressed store, hash-verified

112{
113protected:
114 void SetUp() override
115 {
116 JobSystemCreateParams job_thread_create_param = {0};
117 job_thread_create_param.m_ThreadCount = 1;
118 m_JobContext = JobSystemCreate(&job_thread_create_param);
119
120 const char* test_dir = "build/src/test";
121 dmResource::NewFactoryParams params;
122 params.m_MaxResources = 16;
123 params.m_Flags = RESOURCE_FACTORY_FLAGS_RELOAD_SUPPORT;
124 params.m_JobThreadContext = m_JobContext;
125
126 factory = dmResource::NewFactory(&params, test_dir);
127 ASSERT_NE((void*) 0, factory);
128 }
129
130 void TearDown() override
131 {

Callers

nothing calls this directly

Calls 2

JobSystemCreateFunction · 0.85
NewFactoryFunction · 0.85

Tested by

no test coverage detected