MCPcopy Create free account
hub / github.com/approvals/ApprovalTests.cpp / createFile

Method createFile

ApprovalTests/utilities/EmptyFileCreatorByType.cpp:31–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 }
30
31 void EmptyFileCreatorByType::createFile(const std::string& fileName)
32 {
33 for (const auto& creator : creators_)
34 {
35 if (StringUtils::endsWith(fileName, creator.first))
36 {
37 creator.second(fileName);
38 return;
39 }
40 }
41 EmptyFileCreatorFactory::defaultCreator(fileName);
42 }
43}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected