MCPcopy Create free account
hub / github.com/comaps/comaps / IsValid

Method IsValid

libs/base/base_tests/fifo_cache_test.cpp:31–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 boost::circular_buffer<Key> const & GetFifo() const { return m_cache.m_fifo; }
30
31 bool IsValid() const
32 {
33 set<Key> listKeys(m_cache.m_fifo.begin(), m_cache.m_fifo.end());
34 set<Key> mapKeys;
35
36 for (auto const & kv : m_cache.m_map)
37 mapKeys.insert(kv.first);
38
39 return listKeys == mapKeys;
40 }
41
42private:
43 FifoCache<Key, Value> m_cache;

Callers 1

UNIT_TESTFunction · 0.45

Calls 3

beginMethod · 0.45
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected