MCPcopy Create free account
hub / github.com/Samsung/UTopia / createFile

Method createFile

tests/testutil/SourceFileManager.cpp:30–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30bool SourceFileManager::createFile(std::string Name, std::string Content) {
31 auto Path = fs::path(getSrcDirPath()) / Name;
32 if (!util::saveFile(Path.c_str(), Content.c_str()))
33 return false;
34 ManagedFiles.emplace(Name, Path);
35 return true;
36}
37
38std::string SourceFileManager::getFilePath(std::string Name) const {
39 auto Iter = ManagedFiles.find(Name);

Callers 15

TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 1

saveFileFunction · 0.85

Tested by 15

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36