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

Method SetUp

engine/dlib/src/test/test_zip.cpp:68–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 std::string m_Stream;
67
68 virtual void SetUp()
69 {
70 m_Zip = 0;
71
72 dmZip::Result zr;
73 if (GetParam().m_UseStream)
74 {
75 ASSERT_TRUE(ReadFile(GetParam().m_Path, &m_Stream));
76 zr = dmZip::OpenStream(m_Stream.data(), m_Stream.size(), &m_Zip);
77 }
78 else
79 {
80 char path[1024];
81 dmTestUtil::MakeHostPath(path, sizeof(path), GetParam().m_Path);
82 zr = dmZip::Open(path, &m_Zip);
83 }
84
85 ASSERT_EQ(dmZip::RESULT_OK, zr);
86 }
87
88 virtual void TearDown()
89 {

Callers

nothing calls this directly

Calls 6

OpenStreamFunction · 0.85
MakeHostPathFunction · 0.85
ReadFileFunction · 0.70
OpenFunction · 0.50
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected