MCPcopy Create free account
hub / github.com/ddnet/ddnet / JsonFileWriter

Method JsonFileWriter

src/test/jsonwriter_test.cpp:20–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 char m_aOutputFilename[IO_MAX_PATH_LENGTH];
19
20 JsonFileWriter() :
21 m_pJson(nullptr)
22 {
23 m_Info.Filename(m_aOutputFilename, sizeof(m_aOutputFilename), "-got.json");
24 IOHANDLE File = io_open(m_aOutputFilename, IOFLAG_WRITE);
25 EXPECT_TRUE(File);
26 m_pJson = new CJsonFileWriter(File);
27 }
28
29 void Expect(const char *pExpected)
30 {

Callers

nothing calls this directly

Calls 2

io_openFunction · 0.85
FilenameMethod · 0.45

Tested by

no test coverage detected