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

Method checkNew

tests/generation/TestUTModify.cpp:57–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 }
56
57 bool checkNew(std::map<std::string, std::string> Expect,
58 const std::map<std::string, std::string> &Result) {
59 for (const auto &Iter1 : Result) {
60 auto Path = fs::path(Iter1.first).filename().string();
61 auto FindIter = Expect.find(Path);
62 if (FindIter == Expect.end())
63 return false;
64 if (Iter1.second != FindIter->second)
65 return false;
66 Expect.erase(FindIter);
67 }
68 if (Expect.size() != 0)
69 return false;
70 return true;
71 }
72
73 bool checkModAll(const std::vector<Replacement> &Expect,
74 const std::map<std::string, Replacements> &Result) {

Callers

nothing calls this directly

Calls 3

endMethod · 0.80
sizeMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected