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

Method SetupTestData

engine/dlib/src/test/test_httpclient.cpp:203–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201 }
202
203 void SetupTestData()
204 {
205 char tmp_dir[256];
206 char http_files[256];
207 dmTestUtil::MakeHostPath(tmp_dir, sizeof(tmp_dir), "tmp");
208 dmTestUtil::MakeHostPath(m_CacheDir, sizeof(m_CacheDir), "tmp/cache");
209 dmTestUtil::MakeHostPath(http_files, sizeof(http_files), "tmp/http_files");
210
211 dmSys::RmTree(tmp_dir);
212
213 dmSys::Mkdir(tmp_dir, 0755);
214 dmSys::Mkdir(m_CacheDir, 0755);
215 dmSys::Mkdir(http_files, 0755);
216
217 CreateFile("tmp/http_files/a.txt", "You will find this data in a.txt and d.txt");
218 CreateFile("tmp/http_files/b.txt", "Some data in file b");
219 CreateFile("tmp/http_files/c.txt", "Some data in file c");
220 CreateFile("tmp/http_files/d.txt", "You will find this data in a.txt and d.txt");
221 }
222
223 void SetUp() override
224 {

Callers

nothing calls this directly

Calls 3

MakeHostPathFunction · 0.85
RmTreeFunction · 0.85
MkdirFunction · 0.50

Tested by

no test coverage detected