MCPcopy Create free account
hub / github.com/NPP-JSONViewer/JSON-Viewer / GetPosition

Method GetPosition

tests/UnitTest/NavigationTest.cpp:36–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 void AppendNodeCount(HTREEITEM /*node*/, unsigned /*elementCount*/, bool /*bArray*/) override {}
35
36 auto GetPosition(const std::string& text) const -> std::optional<Position>
37 {
38 auto find = m_mapKeyPosition.find(text);
39
40 std::optional<Position> retVal = std::nullopt;
41 if (find != m_mapKeyPosition.cend())
42 retVal = find->second;
43
44 return retVal;
45 }
46};
47
48namespace JsonNavigation

Callers 1

TEST_FFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected