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

Method IsValidForTesting

libs/base/lru_cache.hpp:57–67  ·  view source on GitHub ↗

\brief Checks for coherence class params. \note It's a time consumption method and should be called for tests only.

Source from the content-addressed store, hash-verified

55 /// \brief Checks for coherence class params.
56 /// \note It's a time consumption method and should be called for tests only.
57 bool IsValidForTesting() const
58 {
59 if (!m_keyAge.IsValidForTesting())
60 return false;
61
62 for (auto const & kv : m_cache)
63 if (!m_keyAge.IsKeyValidForTesting(kv.first))
64 return false;
65
66 return true;
67 }
68
69private:
70 /// \brief This class support cross mapping from age to key and for key to age.

Callers 2

IsValidMethod · 0.45
IsValidMethod · 0.45

Calls 1

IsKeyValidForTestingMethod · 0.80

Tested by 2

IsValidMethod · 0.36
IsValidMethod · 0.36