| 9 | namespace ValdiTest { |
| 10 | |
| 11 | static bool containsStringInCache(const StringCache& cache, std::string_view str) { |
| 12 | for (const auto& strInCache : cache.all()) { |
| 13 | if (strInCache.toStringView() == str) { |
| 14 | return true; |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | return false; |
| 19 | } |
| 20 | |
| 21 | TEST(StringCache, canMakeStrings) { |
| 22 | auto& cache = StringCache::getGlobal(); |
no test coverage detected