MCPcopy Create free account
hub / github.com/apache/arrow / TestCacheKey

Class TestCacheKey

cpp/src/gandiva/cache_test.cc:27–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25namespace gandiva {
26
27class TestCacheKey {
28 public:
29 explicit TestCacheKey(int value) : value_(value) {}
30 std::size_t Hash() const { return value_; }
31 bool operator==(const TestCacheKey& other) const { return value_ == other.value_; }
32
33 private:
34 int value_;
35};
36
37TEST(TestCache, TestGetPut) {
38 Cache<TestCacheKey, std::shared_ptr<std::string>> cache(2);

Callers 1

TESTFunction · 0.70

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.56