MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / makeTestFile

Function makeTestFile

src/twtest/unixfsservices_t.cpp:50–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48
49
50std::string makeTestFile(const std::string& filename)
51{
52 TSTRING testfile = TwTestPath(filename);
53 cFileArchive filearch;
54 filearch.OpenReadWrite(testfile.c_str());
55 filearch.Seek(0, cBidirArchive::BEGINNING);
56 filearch.WriteString(_T("This is a test"));
57 filearch.Close();
58
59 return testfile;
60}
61
62//Tests the functions that are currently implemented in win32fsservices.
63void TestReadDir()

Callers 3

TestStatFunction · 0.85
TestRenameFunction · 0.85
TestFileDeleteFunction · 0.85

Calls 6

TwTestPathFunction · 0.85
OpenReadWriteMethod · 0.80
c_strMethod · 0.80
SeekMethod · 0.45
WriteStringMethod · 0.45
CloseMethod · 0.45

Tested by 3

TestStatFunction · 0.68
TestRenameFunction · 0.68
TestFileDeleteFunction · 0.68