| 87 | } |
| 88 | |
| 89 | bool |
| 90 | OnlyContainsManifest(std::shared_ptr<BundleResourceContainer> const& resContainer) |
| 91 | { |
| 92 | auto topLevelDirs = resContainer->GetTopLevelDirs(); |
| 93 | return std::all_of(topLevelDirs.begin(), |
| 94 | topLevelDirs.end(), |
| 95 | [&resContainer](std::string const& dir) -> bool |
| 96 | { |
| 97 | std::vector<std::string> names; |
| 98 | std::vector<uint32_t> indices; |
| 99 | |
| 100 | resContainer->GetChildren(dir + "/", true, names, indices); |
| 101 | return std::all_of(names.begin(), |
| 102 | names.end(), |
| 103 | [](const std::string& resourceName) -> bool |
| 104 | { return resourceName == std::string("manifest.json"); }); |
| 105 | }); |
| 106 | } |
| 107 | |
| 108 | //------------------------------------------------------------------- |
| 109 | // Framework storage |
no test coverage detected