MCPcopy Create free account
hub / github.com/Snapchat/djinni / check_optional_map

Method check_optional_map

test-suite/handwritten-src/cpp/test_helpers.cpp:323–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323bool TestHelpers::check_optional_map(const std::unordered_map<std::experimental::optional<std::string>, std::experimental::optional<std::string>> & om) {
324 auto i1 = om.find(std::experimental::nullopt);
325 auto i2 = om.find(std::string("hello"));
326 return om.size() == 2 &&
327 i1->second == std::string("hello") &&
328 i2->second == std::experimental::nullopt;
329}
330
331} // namespace testsuite

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected