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

Method SetUp

engine/dlib/src/test/test_httpcache.cpp:29–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27class dmHttpCacheTest : public jc_test_base_class
28{
29 void SetUp() override
30 {
31 char path[1024];
32 dmTestUtil::MakeHostPath(path, sizeof(path), "tmp");
33 dmSys::Mkdir(path, 0755);
34
35 dmTestUtil::MakeHostPath(path, sizeof(path), "tmp/afile");
36 FILE* f = fopen(path, "wb");
37 fclose(f);
38
39 dmTestUtil::MakeHostPath(m_Path, sizeof(m_Path), "tmp/cache");
40 dmSys::RmTree(m_Path);
41 }
42
43public:
44 dmHttpCache::Result Put(dmHttpCache::HCache cache, const char* uri, const char* etag, const void* content, uint32_t content_len,

Callers

nothing calls this directly

Calls 3

MakeHostPathFunction · 0.85
RmTreeFunction · 0.85
MkdirFunction · 0.50

Tested by

no test coverage detected