MCPcopy Create free account
hub / github.com/WinMerge/winmerge / WriteToTempFile

Function WriteToTempFile

Testing/GoogleTest/DiffWrapper/DiffWrapper_test.cpp:11–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include "SubstitutionFiltersList.h"
10
11const TempFile WriteToTempFile(const String& text)
12{
13 TempFile tmpfile;
14 tmpfile.Create();
15 UniStdioFile file;
16 file.OpenCreateUtf8(tmpfile.GetPath());
17 file.WriteString(text);
18 file.Close();
19 return tmpfile;
20}
21
22TEST(DiffWrapper, RunFileDiff_NoEol)
23{

Callers 1

TESTFunction · 0.85

Calls 5

OpenCreateUtf8Method · 0.80
CreateMethod · 0.45
GetPathMethod · 0.45
WriteStringMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected