MCPcopy Create free account
hub / github.com/TortoiseGit/TortoiseGit / TEST

Function TEST

test/UnitTests/TempFileTest.cpp:23–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21#include "TempFile.h"
22
23TEST(CTempFiles, UniqueName)
24{
25 auto path1 = CTempFiles::Instance().GetTempFilePath(false, CTGitPath(L"something.cpp"));
26 EXPECT_TRUE(path1.Exists());
27 auto path2 = CTempFiles::Instance().GetTempFilePath(false, CTGitPath(L"something.cpp"));
28 EXPECT_TRUE(path2.Exists());
29
30 EXPECT_STRNE(path1.GetWinPathString(), path2.GetWinPathString());
31
32 path1.Delete(false, false);
33 path2.Delete(false, false);
34}
35
36TEST(CTempFiles, LongName)
37{

Callers

nothing calls this directly

Calls 5

CTGitPathClass · 0.50
GetTempFilePathMethod · 0.45
ExistsMethod · 0.45
DeleteMethod · 0.45
GetLengthMethod · 0.45

Tested by

no test coverage detected